diff options
Diffstat (limited to 'cleanup.d/linode.conf')
-rwxr-xr-x | cleanup.d/linode.conf | 15 |
1 files changed, 15 insertions, 0 deletions
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 |