You are here

function backup_migrate_destination_s3_compatible::s3_path in Backup and Migrate S3 7

Generate a filepath with the correct prefix.

3 calls to backup_migrate_destination_s3_compatible::s3_path()
backup_migrate_destination_s3_compatible::load_file in ./destinations.s3.inc
Load from the s3 destination.
backup_migrate_destination_s3_compatible::_delete_file in ./destinations.s3.inc
Delete from the s3 destination.
backup_migrate_destination_s3_compatible::_save_file in ./destinations.s3.inc
Save to to the s3 destination.

File

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

Class

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

Code

function s3_path($filename) {
  $path = '';
  if (empty($filename)) {
    $path .= '/';
  }
  if (!empty($this->settings['file_directory'])) {
    $path .= $this->settings['file_directory'];
  }
  if (!empty($filename)) {
    $path .= '/';
  }
  $path .= $filename;
  return $path;
}