From 39711cf6c2ec5a3b4480dcb4800cc3802bda5bf2 Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Fri, 20 Mar 2026 19:16:32 +0100 Subject: feat: first fully successful run e2e on straper --- straper/db/public/cron/cron.monthly/.placeholder | 2 ++ straper/db/public/cron/cron.monthly/0anacron | 12 ++++++++++++ straper/db/public/cron/cron.monthly/zfs-auto-snapshot | 6 ++++++ 3 files changed, 20 insertions(+) create mode 100644 straper/db/public/cron/cron.monthly/.placeholder create mode 100755 straper/db/public/cron/cron.monthly/0anacron create mode 100755 straper/db/public/cron/cron.monthly/zfs-auto-snapshot (limited to 'straper/db/public/cron/cron.monthly') 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 // -- cgit v1.3