diff --git a/states/gobackup/config.sls b/states/gobackup/config.sls index 7c4cb65..d8333b2 100644 --- a/states/gobackup/config.sls +++ b/states/gobackup/config.sls @@ -16,6 +16,5 @@ gobackup-task-schedule: - function: cmd.run - job_args: - gobackup perform - - hours: {{ gobackup.schedule.hours }} - - minutes: {{ gobackup.schedule.minutes }} + - cron: '{{ gobackup.schedule }}' - run_on_start: false diff --git a/states/gobackup/defaults.yaml b/states/gobackup/defaults.yaml index 2689883..90b630e 100644 --- a/states/gobackup/defaults.yaml +++ b/states/gobackup/defaults.yaml @@ -6,9 +6,7 @@ gobackup: config_dir: /etc/gobackup os: linux arch: amd64 - schedule: - hours: 3 - minutes: 3 + schedule: "10 23 * * *" config: models: gobackup: