remove all old snapshot in restic

This commit is contained in:
2026-01-30 19:32:08 +01:00
parent 6870a11ad8
commit 2deec7ea78
7 changed files with 7 additions and 7 deletions

View File

@@ -2,4 +2,4 @@ LOG_FILE="/home/node/.n8n/external-scripts/data-backup/logs/log.log"
echo "------------------------------------------------------------------------" >> "$LOG_FILE"
echo "$(date) - Script for notes started" >> "$LOG_FILE"
restic -r rclone:sb_project_SBI-CW231949:notes backup /home/node/.n8n/data/notes >> "$LOG_FILE"
restic -r rclone:sb_project_SBI-CW231949:notes forget --keep-last 3 --prune >> "$LOG_FILE"
restic -r rclone:sb_project_SBI-CW231949:notes forget --keep-last 3 --group-by '' --prune >> "$LOG_FILE"