ansible/playbooks/apps/files/bin/restic-prune

7 lines
234 B
Text
Raw Normal View History

2024-10-11 16:42:01 +02:00
#!/bin/bash
set -euo pipefail
killall restic || true
source /mnt/data/bin/resticenv
/usr/bin/restic unlock
/usr/bin/restic forget --prune --keep-within-hourly 1d --keep-within-daily 7d --keep-within-weekly 1m --keep-within-monthly 6m