You are here

public function backup_migrate_destination_s3::remote_path in Backup and Migrate 7.3

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

Generate a filepath with the correct prefix.

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

File

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

Class

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

Code

public function remote_path($path) {
  if ($subdir = $this
    ->get_subdir()) {
    $path = $subdir . '/' . $path;
  }
  return $path;
}