diff options
Diffstat (limited to 'straper/db/public/cron/cron.monthly')
| -rw-r--r-- | straper/db/public/cron/cron.monthly/.placeholder | 2 | ||||
| -rwxr-xr-x | straper/db/public/cron/cron.monthly/0anacron | 12 | ||||
| -rwxr-xr-x | straper/db/public/cron/cron.monthly/zfs-auto-snapshot | 6 |
3 files changed, 20 insertions, 0 deletions
diff --git a/straper/db/public/cron/cron.monthly/.placeholder b/straper/db/public/cron/cron.monthly/.placeholder new file mode 100644 index 0000000..76cb8d0 --- /dev/null +++ b/straper/db/public/cron/cron.monthly/.placeholder @@ -0,0 +1,2 @@ +# DO NOT EDIT OR REMOVE +# This file is a simple placeholder to keep dpkg from removing this directory diff --git a/straper/db/public/cron/cron.monthly/0anacron b/straper/db/public/cron/cron.monthly/0anacron new file mode 100755 index 0000000..1b094c0 --- /dev/null +++ b/straper/db/public/cron/cron.monthly/0anacron @@ -0,0 +1,12 @@ +#!/bin/sh +# +# anacron's cron script +# +# This script updates anacron time stamps. It is called through run-parts +# either by anacron itself or by cron. +# +# The script is called "0anacron" to assure that it will be executed +# _before_ all other scripts. + +test -x /usr/sbin/anacron || exit 0 +anacron -u cron.monthly diff --git a/straper/db/public/cron/cron.monthly/zfs-auto-snapshot b/straper/db/public/cron/cron.monthly/zfs-auto-snapshot new file mode 100755 index 0000000..2ab823f --- /dev/null +++ b/straper/db/public/cron/cron.monthly/zfs-auto-snapshot @@ -0,0 +1,6 @@ +#!/bin/sh + +# Only call zfs-auto-snapshot if it's available +which zfs-auto-snapshot > /dev/null || exit 0 + +exec zfs-auto-snapshot --quiet --syslog --label=monthly --keep=12 // |
