diff --git a/etc/zfs-auto-snapshot.cron.daily b/etc/zfs-auto-snapshot.cron.daily index fab4e7f..94cd7a2 100644 --- a/etc/zfs-auto-snapshot.cron.daily +++ b/etc/zfs-auto-snapshot.cron.daily @@ -1,2 +1,5 @@ #!/bin/sh -exec zfs-auto-snapshot --quiet --syslog --label=daily --keep=31 // + +# Only call zfs-auto-snapshot if it's available +exec which zfs-auto-snapshot > /dev/null && \ + 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 e87f818..a1d6fcd 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 zfs-auto-snapshot --quiet --syslog --label=frequent --keep=4 // +*/15 * * * * root which zfs-auto-snapshot > /dev/null && 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 dc39e11..a893409 100644 --- a/etc/zfs-auto-snapshot.cron.hourly +++ b/etc/zfs-auto-snapshot.cron.hourly @@ -1,2 +1,5 @@ #!/bin/sh -exec zfs-auto-snapshot --quiet --syslog --label=hourly --keep=24 // + +# Only call zfs-auto-snapshot if it's available +exec which zfs-auto-snapshot > /dev/null && \ + 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 27e2ead..7394e99 100644 --- a/etc/zfs-auto-snapshot.cron.monthly +++ b/etc/zfs-auto-snapshot.cron.monthly @@ -1,2 +1,5 @@ #!/bin/sh -exec zfs-auto-snapshot --quiet --syslog --label=monthly --keep=12 // + +# Only call zfs-auto-snapshot if it's available +exec which zfs-auto-snapshot > /dev/null && \ + 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 6180e2b..9e20f31 100644 --- a/etc/zfs-auto-snapshot.cron.weekly +++ b/etc/zfs-auto-snapshot.cron.weekly @@ -1,2 +1,5 @@ #!/bin/sh -exec zfs-auto-snapshot --quiet --syslog --label=weekly --keep=8 // + +# Only call zfs-auto-snapshot if it's available +exec which zfs-auto-snapshot > /dev/null && \ + zfs-auto-snapshot --quiet --syslog --label=weekly --keep=8 //