mirror of
https://github.com/zfsonlinux/zfs-auto-snapshot.git
synced 2024-11-25 17:43:12 +01:00
4b7609791b
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.
3 lines
77 B
Bash
3 lines
77 B
Bash
#!/bin/sh
|
|
exec zfs-auto-snapshot --quiet --syslog --label=daily --keep=31 //
|