diff --git a/src/Service/BackupService.php b/src/Service/BackupService.php index d99006d..44f3ff7 100644 --- a/src/Service/BackupService.php +++ b/src/Service/BackupService.php @@ -15,7 +15,8 @@ class BackupService public function backup(string $db, ?string $fileName = null): string { if (!$fileName) { - $fileName = sprintf('%s_backup.sql', $db); + $date = date('y_m_d_H_i'); + $fileName = sprintf('%s_%s_backup.sql', $db, $date); } $filesystem = new Filesystem();