You are here

function backup_migrate_destination_nodesquirrel::destinations in Backup and Migrate 8.3

Same name and namespace in other branches
  1. 6.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 349
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(
    'machine_name' => '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;
}