Split the cron file for anacron compatibilty.
Split the cron file so that the hourly, daily, weekly, and monthly
zfs automatic snapshots still happen even if the system is offline
temporarily during the scheduled event, such as during a reboot.
On Debian systems, if anacron is installed, then it is used to run
the /etc/cron.{hourly,daily,weekly,monthly} directories, but not
the /etc/cron.d directory. This means that /etc/cron.d jobs are not
run if the system is offline when crond would usually invoke them.
2011-11-25 17:51:03 +01:00
|
|
|
#!/bin/sh
|
2017-06-06 11:06:16 +02:00
|
|
|
|
|
|
|
# Only call zfs-auto-snapshot if it's available
|
2017-09-18 09:25:02 +02:00
|
|
|
which zfs-auto-snapshot > /dev/null || exit 0
|
|
|
|
|
|
|
|
exec zfs-auto-snapshot --quiet --syslog --label=weekly --keep=8 //
|