function backup_migrate_destination_nodesquirrel::destinations in Backup and Migrate 6.3
Same name and namespace in other branches
- 8.3 includes/destinations.nodesquirrel.inc \backup_migrate_destination_nodesquirrel::destinations()
Declare any mysql databases defined in the settings.php file as a possible destination.
File
- includes/
destinations.nodesquirrel.inc, line 177 - Functions to handle the NodeSquirrel backup destination.
Class
- backup_migrate_destination_nodesquirrel
- A destination for sending database backups to the NodeSquirel backup service.
Code
function destinations() {
$out = array();
$out['nodesquirrel'] = backup_migrate_create_destination('nodesquirrel', array(
'destination_id' => 'nodesquirrel',
));
if ($secret_key = variable_get('nodesquirrel_secret_key', '')) {
$out['nodesquirrel']->settings['secret_key'] = $secret_key;
}
else {
$out['nodesquirrel']->supported_ops = array(
'manual backup',
'remote backup',
);
}
return $out;
}