Add various scripts for MinIO and Restic backup management

This commit is contained in:
William Valentin
2025-10-24 11:48:52 -07:00
parent 7bd5974ac4
commit 27560832a2
10 changed files with 500 additions and 0 deletions

16
scripts/restic-clean.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/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