You are here

function backup_migrate_destination_dropbox::dropbox_object in Backup and Migrate Dropbox 6

Same name and namespace in other branches
  1. 6.2 destinations.dropbox.inc \backup_migrate_destination_dropbox::dropbox_object()
1 call to backup_migrate_destination_dropbox::dropbox_object()
backup_migrate_destination_dropbox::save_file in ./destinations.dropbox.inc
Save to to the Dropbox destination.

File

./destinations.dropbox.inc, line 57
Functions to handle the dropbox backup destination.

Class

backup_migrate_destination_dropbox
A destination for sending database backups to a Dropbox account.

Code

function dropbox_object() {
  require_once 'sites/all/libraries/DropboxUploader/DropboxUploader.php';
  if (!$this->dropbox) {
    $this->dropbox = new DropboxUploader($this->dest_url['user'], $this->dest_url['pass']);
    $this->dropbox
      ->setCaCertificateFile('./' . drupal_get_path('module', 'backup_migrate_dropbox') . '/ThawtePremiumServerCA.crt');
  }
  return $this->dropbox;
}