Skip to content

Commit

Permalink
chore: add multi databases backup verification
Browse files Browse the repository at this point in the history
  • Loading branch information
jkaninda committed Nov 19, 2024
1 parent 518f20b commit 048c93c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ func startMultiBackup(bkConfig *BackupConfig, configFile string) {
if conf.CronExpression != "" {
bkConfig.cronExpression = conf.CronExpression
}
if len(conf.Databases) == 0 {
logger.Fatal("No databases found")
}
// Check if cronExpression is defined
if bkConfig.cronExpression == "" {
multiBackupTask(conf.Databases, bkConfig)
Expand Down

0 comments on commit 048c93c

Please sign in to comment.