function hosting_site_post_hosting_backup_task in Hosting 5
Same name and namespace in other branches
- 6.2 site/hosting_site.drush.inc \hosting_site_post_hosting_backup_task()
- 7.4 site/hosting_site.drush.inc \hosting_site_post_hosting_backup_task()
- 7.3 site/hosting_site.drush.inc \hosting_site_post_hosting_backup_task()
Implementation of hook_hosting_post_backup
Adds the data file that was saved to the site backup history. This is needed to be able to restore.
File
- site/
hosting_site.drush.inc, line 106
Code
function hosting_site_post_hosting_backup_task($task, $data) {
if ($data['context']['backup_file'] && $task->ref->type == 'site') {
$platform = node_load($task->ref->platform);
hosting_site_add_backup($task->ref->nid, $platform->web_server, $data['context']['backup_file'], t('Generated on request'));
}
}