mirror of
https://github.com/zfsonlinux/zfs-auto-snapshot.git
synced 2024-11-25 17:43:12 +01:00
Expand the options variable in the cron part file.
Cron doesn't do variable substitution and zfs-auto-snapshot doesn't load options from its environment.
This commit is contained in:
parent
875b55c967
commit
5bdcaad4bf
@ -1,8 +1,7 @@
|
||||
PATH="/usr/bin:/bin:/usr/sbin:/sbin"
|
||||
OPTIONS="--quiet --syslog"
|
||||
|
||||
* */4 * * * root zfs-auto-snapshot $OPTIONS --label=frequent --keep=4 //
|
||||
@hourly root zfs-auto-snapshot $OPTIONS --label=hourly --keep=24 //
|
||||
@daily root zfs-auto-snapshot $OPTIONS --label=daily --keep=31 //
|
||||
@weekly root zfs-auto-snapshot $OPTIONS --label=weekly --keep=4 //
|
||||
@monthly root zfs-auto-snapshot $OPTIONS --label=monthly --keep=12 //
|
||||
*/15 * * * * root zfs-auto-snapshot -q -g --label=frequent --keep=4 //
|
||||
@hourly root zfs-auto-snapshot -q -g --label=hourly --keep=24 //
|
||||
@daily root zfs-auto-snapshot -q -g --label=daily --keep=31 //
|
||||
@weekly root zfs-auto-snapshot -q -g --label=weekly --keep=4 //
|
||||
@monthly root zfs-auto-snapshot -q -g --label=monthly --keep=12 //
|
||||
|
Loading…
Reference in New Issue
Block a user