Add scheduling for backup and forgetting

Only forget on 1 machine
This commit is contained in:
Jake Howard
2021-05-16 15:34:37 +01:00
parent 91725d5876
commit a124bff473
5 changed files with 47 additions and 5 deletions

View File

@ -31,3 +31,20 @@
path: /usr/bin/restic
capability: cap_dac_read_search=+ep
become: true
- name: Schedule backup
cron:
name: restic backup
special_time: daily
job: /home/restic/backrest.sh cron_backup
user: restic
become: true
- name: Schedule forget
cron:
name: restic forget
special_time: weekly
job: /home/restic/backrest.sh cron_forget
user: restic
become: true
when: restic_forget