From 753ad76f5f32ace36a7686936b76caf296c7ff65 Mon Sep 17 00:00:00 2001 From: Thomas Groman Date: Wed, 11 Mar 2020 14:30:34 -0700 Subject: initial commit --- cleanup.d/backblaze.conf | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 cleanup.d/backblaze.conf (limited to 'cleanup.d/backblaze.conf') diff --git a/cleanup.d/backblaze.conf b/cleanup.d/backblaze.conf new file mode 100755 index 0000000..c7f006e --- /dev/null +++ b/cleanup.d/backblaze.conf @@ -0,0 +1,15 @@ +#!/bin/bash + +# This script is used by the CRON Daemon to prune backups via the Restic backup utility + +# Load restic varibles +source /etc/restic.d/backblaze.conf + +# Delete backups according to policy +restic forget \ + "$RESTIC_COMMON_OPTS" \ + --prune \ + --keep-daily 30 \ + --keep-weekly 52 \ + --keep-monthly 3 \ + --keep-yearly 4 -- cgit v1.2.3