You are here

protected function DrupalSiteArchiveSource::getManifestFile in Backup and Migrate 8.4

Get a file which contains the file.

Return value

\BackupMigrate\Core\File\BackupFileWritableInterface

1 call to DrupalSiteArchiveSource::getManifestFile()
DrupalSiteArchiveSource::getFilesToBackup in src/Source/DrupalSiteArchiveSource.php
Get a list if files to be backed up from the given directory. Do not include files that match the 'exclude_filepaths' setting.

File

src/Source/DrupalSiteArchiveSource.php, line 90

Class

DrupalSiteArchiveSource
Class DrupalSiteArchiveSource.

Namespace

BackupMigrate\Drupal\Source

Code

protected function getManifestFile() {
  $out = $this
    ->getTempFileManager()
    ->create('ini');
  $info = [
    'Global' => [
      'datestamp' => time(),
      "formatversion" => "2011-07-02",
      "generator" => "Backup and Migrate (http://drupal.org/project/backup_migrate)",
      "generatorversion" => BACKUP_MIGRATE_MODULE_VERSION,
    ],
    'Site 0' => [
      'version' => \Drupal::VERSION,
      'name' => "Example.com",
      'docroot' => "docroot",
      'sitedir' => "docroot/sites/default",
      'database-file-default' => "database.sql",
      'database-file-driver' => "mysql",
      'files-private' => "docroot/sites/default/private",
      'files-public' => "docroot/sites/default/files",
    ],
  ];
  $out
    ->writeAll($this
    ->arrayToINI($info));
  return $out;
}