Files
willlaptop/scripts/restic-clean.sh
2025-10-24 11:48:52 -07:00

17 lines
374 B
Bash
Executable File

#!/bin/bash
export RESTIC_PASSWORD=frack666
export RESTIC_REPOSITORY=s3:http://192.168.153.245:9000/backup
export AWS_ACCESS_KEY_ID=mvwfWSsT7oddu14jln0y
export AWS_SECRET_ACCESS_KEY=qijzP5fYRHYn7SJTZjJNtNIu1RQznQchpt2Ai7Mt
restic forget \
--keep-daily 24 \
--keep-weekly 9 \
--keep-monthly 12 \
--insecure-tls \
--prune
restic cache --cleanup --insecure-tls