From 3caf4e9c1d9182a3bba932487cd83baad3ba654e Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Sun, 18 May 2025 10:07:31 +0300 Subject: [PATCH] Add removal of old backups --- simple_backup.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/simple_backup.sh b/simple_backup.sh index 0471ee6..1cde3d8 100755 --- a/simple_backup.sh +++ b/simple_backup.sh @@ -151,3 +151,4 @@ else result=$(tail -n1 "${HOME}/.logs/simple_backup_${current_date}.json" | jq '.') zenity --info --text "${backup_succeeded} ${result}" fi +/usr/local/bin/restic forget --keep-yearly 2 --keep-monthly 4 --keep-last 15 --prune -r "${destination}" "${password_file[@]}" --json