function hosting_site_add_backup in Hosting 5
Same name and namespace in other branches
- 6.2 site/hosting_site.backups.inc \hosting_site_add_backup()
- 7.4 site/hosting_site.backups.inc \hosting_site_add_backup()
- 7.3 site/hosting_site.backups.inc \hosting_site_add_backup()
Add a site backup record.
Builds a list of backups of the site that have been generated.
3 calls to hosting_site_add_backup()
- hosting_site_post_hosting_backup_task in site/
hosting_site.drush.inc - Implementation of hook_hosting_post_backup
- hosting_site_post_hosting_disable_task in site/
hosting_site.drush.inc - implementation of hook_hosting_post_disable I am not very fond of the use of bitwise operators with negatives.
- hosting_site_post_hosting_restore_task in site/
hosting_site.drush.inc - implementation of hook_hosting_post_restore I am not very fond of the use of bitwise operators with negatives.
File
- site/
hosting_site.module, line 527
Code
function hosting_site_add_backup($site, $web_server, $filename, $description = '') {
$bid = db_next_id("{hosting_site_backups}_bid");
db_query("INSERT INTO {hosting_site_backups} (bid, site, web_server, filename, description, timestamp) VALUES (%d, %d, %d, '%s', '%s', %d)", $bid, $site, $web_server, $filename, $description, mktime());
return $bid;
}