Use single cron job for pruning and taking snapshots

Less to manage, and less lock contention
This commit is contained in:
Jake Howard 2020-08-26 13:02:27 +01:00
parent 77262cd206
commit 9a8995f1f8
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -60,16 +60,9 @@
dest: /etc/sanoid/sanoid.conf
become: true
- name: Install snapshot job
- name: Install cron job
cron:
name: sanoid snapshot
name: sanoid
special_time: hourly
job: TZ=UTC /usr/local/sbin/sanoid --take-snapshots --verbose
become: true
- name: Install prune job
cron:
name: sanoid prune
special_time: hourly
job: TZ=UTC /usr/local/sbin/sanoid --prune-snapshots --verbose
job: TZ=UTC /usr/local/sbin/sanoid --cron --verbose
become: true