blob: c7f006ebb6efe684ae07738f5aabd1ce1c23db9c (
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/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
|