You are here

function backup_migrate_files_destination_archivesource::backup_settings_default in Backup and Migrate 6.3

Same name and namespace in other branches
  1. 8.3 includes/sources.archivesource.inc \backup_migrate_files_destination_archivesource::backup_settings_default()
  2. 7.3 includes/sources.archivesource.inc \backup_migrate_files_destination_archivesource::backup_settings_default()

Get the form for the settings for this destination.

Overrides backup_migrate_destination_filesource::backup_settings_default

File

includes/sources.archivesource.inc, line 48
A destination type for saving locally to the server.

Class

backup_migrate_files_destination_archivesource
A destination type for saving locally to the server.

Code

function backup_settings_default() {
  $out = parent::backup_settings_default();
  $excludes = explode("\n", $out['exclude_filepaths']);
  foreach ($excludes as $i => $exclude) {
    $excludes[$i] = file_directory_path() . '/' . $exclude;
  }
  $excludes[] = conf_path() . '/settings.php';
  $excludes[] = file_directory_temp();
  return array(
    'exclude_filepaths' => implode("\n", $excludes),
  );
}