Exemple #1
0
 /**
  * Run after a backup. Add metadata to the file.
  *
  * @param \BackupMigrate\Core\File\BackupFileWritableInterface $file
  * @return \BackupMigrate\Core\File\BackupFileWritableInterface
  */
 public function afterBackup(BackupFileWritableInterface $file)
 {
     // Add the various metadata.
     foreach ($this->getMetaKeys() as $key) {
         $value = $this->confGet($key);
         $file->setMeta($key, $value);
     }
     return $file;
 }