diff --git a/etc/zfs-auto-snapshot.cron.daily b/etc/zfs-auto-snapshot.cron.daily index 89a6a13..14fe006 100644 --- a/etc/zfs-auto-snapshot.cron.daily +++ b/etc/zfs-auto-snapshot.cron.daily @@ -1,5 +1,6 @@ #!/bin/sh # Only call zfs-auto-snapshot if it's available -which zfs-auto-snapshot > /dev/null && \ - exec zfs-auto-snapshot --quiet --syslog --label=daily --keep=31 // +which zfs-auto-snapshot > /dev/null || exit 0 + +exec zfs-auto-snapshot --quiet --syslog --label=daily --keep=31 // diff --git a/etc/zfs-auto-snapshot.cron.frequent b/etc/zfs-auto-snapshot.cron.frequent index a1d6fcd..613afc9 100644 --- a/etc/zfs-auto-snapshot.cron.frequent +++ b/etc/zfs-auto-snapshot.cron.frequent @@ -1,3 +1,3 @@ PATH="/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin" -*/15 * * * * root which zfs-auto-snapshot > /dev/null && zfs-auto-snapshot --quiet --syslog --label=frequent --keep=4 // +*/15 * * * * root which zfs-auto-snapshot > /dev/null || exit 0 ; zfs-auto-snapshot --quiet --syslog --label=frequent --keep=4 // diff --git a/etc/zfs-auto-snapshot.cron.hourly b/etc/zfs-auto-snapshot.cron.hourly index b558269..5da52b1 100644 --- a/etc/zfs-auto-snapshot.cron.hourly +++ b/etc/zfs-auto-snapshot.cron.hourly @@ -1,5 +1,6 @@ #!/bin/sh # Only call zfs-auto-snapshot if it's available -which zfs-auto-snapshot > /dev/null && \ - exec zfs-auto-snapshot --quiet --syslog --label=hourly --keep=24 // +which zfs-auto-snapshot > /dev/null || exit 0 + +exec zfs-auto-snapshot --quiet --syslog --label=hourly --keep=24 // diff --git a/etc/zfs-auto-snapshot.cron.monthly b/etc/zfs-auto-snapshot.cron.monthly index 4b1ad17..2ab823f 100644 --- a/etc/zfs-auto-snapshot.cron.monthly +++ b/etc/zfs-auto-snapshot.cron.monthly @@ -1,5 +1,6 @@ #!/bin/sh # Only call zfs-auto-snapshot if it's available -which zfs-auto-snapshot > /dev/null && \ - exec zfs-auto-snapshot --quiet --syslog --label=monthly --keep=12 // +which zfs-auto-snapshot > /dev/null || exit 0 + +exec zfs-auto-snapshot --quiet --syslog --label=monthly --keep=12 // diff --git a/etc/zfs-auto-snapshot.cron.weekly b/etc/zfs-auto-snapshot.cron.weekly index 574a5e2..3aa977a 100644 --- a/etc/zfs-auto-snapshot.cron.weekly +++ b/etc/zfs-auto-snapshot.cron.weekly @@ -1,5 +1,6 @@ #!/bin/sh # Only call zfs-auto-snapshot if it's available -which zfs-auto-snapshot > /dev/null && \ - exec zfs-auto-snapshot --quiet --syslog --label=weekly --keep=8 // +which zfs-auto-snapshot > /dev/null || exit 0 + +exec zfs-auto-snapshot --quiet --syslog --label=weekly --keep=8 //