mirror of
https://github.com/jkaninda/mysql-bkup.git
synced 2025-12-06 13:39:41 +01:00
chore: add cron-expression to get value from flag
This commit is contained in:
@@ -71,6 +71,7 @@ func initDbConfig(cmd *cobra.Command) *dbConfig {
|
|||||||
}
|
}
|
||||||
func initBackupConfig(cmd *cobra.Command) *BackupConfig {
|
func initBackupConfig(cmd *cobra.Command) *BackupConfig {
|
||||||
utils.SetEnv("STORAGE_PATH", storagePath)
|
utils.SetEnv("STORAGE_PATH", storagePath)
|
||||||
|
utils.GetEnv(cmd, "cron-expression", "BACKUP_CRON_EXPRESSION")
|
||||||
utils.GetEnv(cmd, "period", "BACKUP_CRON_EXPRESSION")
|
utils.GetEnv(cmd, "period", "BACKUP_CRON_EXPRESSION")
|
||||||
|
|
||||||
//Get flag value and set env
|
//Get flag value and set env
|
||||||
|
|||||||
Reference in New Issue
Block a user