updated gobackup state

This commit is contained in:
Paul 2020-09-01 20:13:17 +02:00
parent 16977767ed
commit b58d7e0b99
2 changed files with 14 additions and 1 deletions

View File

@ -8,4 +8,14 @@ gobackup-config-file:
file.managed: file.managed:
- name: {{ gobackup.config_dir }}/gobackup.yml - name: {{ gobackup.config_dir }}/gobackup.yml
- source: salt://gobackup/templates/gobackup.yml.j2 - source: salt://gobackup/templates/gobackup.yml.j2
- template: jinja - template: jinja
gobackup-task-schedule:
schedule.present:
- name: gobackup-task-schedule
- function: cmd.run
- job_args:
- gobackup perform
- hours: {{ gobackup.schedule.hours }}
- minutes: {{ gobackup.schedule.minutes }}
- run_on_start: false

View File

@ -6,6 +6,9 @@ gobackup:
config_dir: /etc/gobackup config_dir: /etc/gobackup
os: linux os: linux
arch: amd64 arch: amd64
schedule:
hours: 3
minutes: 3
config: config:
models: models:
gobackup: gobackup: