예제 #1
0
파일: FileNamer.php 프로젝트: Wylbur/gj
 /**
  * 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;
 }