You are here

function backup_migrate_destination_s3::get_subdir in Backup and Migrate 6.3

Same name and namespace in other branches
  1. 8.2 includes/destinations.s3.inc \backup_migrate_destination_s3::get_subdir()
  2. 8.3 includes/destinations.s3.inc \backup_migrate_destination_s3::get_subdir()
  3. 6.2 includes/destinations.s3.inc \backup_migrate_destination_s3::get_subdir()
  4. 7.3 includes/destinations.s3.inc \backup_migrate_destination_s3::get_subdir()
  5. 7.2 includes/destinations.s3.inc \backup_migrate_destination_s3::get_subdir()

Get the bucket which is the first part of the path.

4 calls to backup_migrate_destination_s3::get_subdir()
backup_migrate_destination_s3::edit_form in includes/destinations.s3.inc
Get the form for the settings for this filter.
backup_migrate_destination_s3::local_path in includes/destinations.s3.inc
Generate a filepath with the correct prefix.
backup_migrate_destination_s3::remote_path in includes/destinations.s3.inc
Generate a filepath with the correct prefix.
backup_migrate_destination_s3::_list_files in includes/destinations.s3.inc
List all files from the s3 destination.

File

includes/destinations.s3.inc, line 151
Functions to handle the s3 backup destination.

Class

backup_migrate_destination_s3
A destination for sending database backups to an s3 server.

Code

function get_subdir() {

  // Support the older style of subdir saving.
  if ($subdir = $this
    ->settings('subdir')) {
    return $subdir;
  }
  $parts = explode('/', @$this->dest_url['path']);
  array_shift($parts);
  return implode('/', array_filter($parts));
}