You are here

function hosting_site_get_backup in Hosting 7.4

Same name and namespace in other branches
  1. 5 site/hosting_site.module \hosting_site_get_backup()
  2. 6.2 site/hosting_site.backups.inc \hosting_site_get_backup()
  3. 7.3 site/hosting_site.backups.inc \hosting_site_get_backup()

Get a site backup record

2 calls to hosting_site_get_backup()
drush_hosting_site_pre_hosting_task in site/hosting_site.drush.inc
Implements drush_HOOK_pre_COMMAND()
hosting_task_backup_delete_form in site/hosting_site.backups.inc
Implements hosting_task_TASK_TYPE_form().

File

site/hosting_site.backups.inc, line 55
Site backup functions.

Code

function hosting_site_get_backup($bid) {
  return db_query("SELECT bid, site, web_server, filename, description, size, timestamp FROM {hosting_site_backups} WHERE bid = :bid", array(
    ':bid' => $bid,
  ))
    ->fetchAssoc();
}