fix: generate backup file name in scheduled mode

This commit is contained in:
Jonas Kaninda
2024-09-28 09:18:58 +02:00
parent 7912ce46ed
commit e97fc7512a
4 changed files with 10 additions and 12 deletions

View File

@@ -20,7 +20,7 @@ func StartRestore(cmd *cobra.Command) {
dbConf = initDbConfig(cmd)
restoreConf := initRestoreConfig(cmd)
switch storage {
switch restoreConf.storage {
case "s3":
restoreFromS3(dbConf, restoreConf.file, restoreConf.bucket, restoreConf.s3Path)
case "local":