Use single cron job for pruning and taking snapshots
Less to manage, and less lock contention
This commit is contained in:
parent
77262cd206
commit
9a8995f1f8
1 changed files with 3 additions and 10 deletions
|
@ -60,16 +60,9 @@
|
||||||
dest: /etc/sanoid/sanoid.conf
|
dest: /etc/sanoid/sanoid.conf
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
- name: Install snapshot job
|
- name: Install cron job
|
||||||
cron:
|
cron:
|
||||||
name: sanoid snapshot
|
name: sanoid
|
||||||
special_time: hourly
|
special_time: hourly
|
||||||
job: TZ=UTC /usr/local/sbin/sanoid --take-snapshots --verbose
|
job: TZ=UTC /usr/local/sbin/sanoid --cron --verbose
|
||||||
become: true
|
|
||||||
|
|
||||||
- name: Install prune job
|
|
||||||
cron:
|
|
||||||
name: sanoid prune
|
|
||||||
special_time: hourly
|
|
||||||
job: TZ=UTC /usr/local/sbin/sanoid --prune-snapshots --verbose
|
|
||||||
become: true
|
become: true
|
||||||
|
|
Loading…
Reference in a new issue