/** * Run on a backup. Name the backup file according to the configuration * * @param \BackupMigrate\Core\File\BackupFileReadableInterface $file * @return \BackupMigrate\Core\File\BackupFileReadableInterface */ public function afterBackup(BackupFileReadableInterface $file) { $name = $this->confGet('filename'); if ($this->confGet('timestamp')) { $name .= '-' . gmdate($this->confGet('timestamp_format')); } $file->setName($name); return $file; }