You are here

public function backup_migrate_files_destination_archivesource::sources in Backup and Migrate 7.3

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

Declares the current files directory as a backup source..

Overrides backup_migrate_destination_filesource::sources

File

includes/sources.archivesource.inc, line 32
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

public function sources() {
  $out = array();
  $out['archive'] = backup_migrate_create_destination('archive', array(
    'machine_name' => 'archive',
    'location' => '.',
    'name' => t('Entire Site (code, files & DB)'),
    'show_in_list' => FALSE,
  ));
  return $out;
}