blob: 0035a246afb78b7adb6dd68063649391abf7e4e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
|