diff options
Diffstat (limited to 'cleanup.d')
-rwxr-xr-x | cleanup.d/backblaze.conf | 15 | ||||
-rwxr-xr-x | cleanup.d/linode.conf | 15 |
2 files changed, 30 insertions, 0 deletions
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 diff --git a/cleanup.d/linode.conf b/cleanup.d/linode.conf new file mode 100755 index 0000000..0035a24 --- /dev/null +++ b/cleanup.d/linode.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/linode.conf + +# Delete backups according to policy +restic forget \ + "$RESTIC_COMMON_OPTS" \ + --prune \ + --keep-daily 30 \ + --keep-weekly 52 \ + --keep-monthly 3 \ + --keep-yearly 4 |