2 Commits

Author SHA1 Message Date
adebbd6fee Add -q to the getopt list of short options.
This corresponds to the --quiet option.
2011-11-21 21:40:04 -06:00
5bdcaad4bf 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.
2011-11-21 20:40:24 -06:00
2 changed files with 6 additions and 7 deletions

View File

@ -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 //

View File

@ -136,7 +136,7 @@ GETOPT=$(getopt \
--longoptions=default-exclude,dry-run,skip-scrub,recursive \
--longoptions=keep:,label:,prefix:,sep: \
--longoptions=debug,help,quiet,syslog,verbose \
--options=dnshl:k:rs:gv \
--options=dnshl:k:rs:qgv \
-- "$@" ) \
|| exit 1