Add removal of old backups
This commit is contained in:
parent
388fea92a7
commit
3caf4e9c1d
1 changed files with 1 additions and 0 deletions
|
@ -151,3 +151,4 @@ else
|
||||||
result=$(tail -n1 "${HOME}/.logs/simple_backup_${current_date}.json" | jq '.')
|
result=$(tail -n1 "${HOME}/.logs/simple_backup_${current_date}.json" | jq '.')
|
||||||
zenity --info --text "${backup_succeeded} ${result}"
|
zenity --info --text "${backup_succeeded} ${result}"
|
||||||
fi
|
fi
|
||||||
|
/usr/local/bin/restic forget --keep-yearly 2 --keep-monthly 4 --keep-last 15 --prune -r "${destination}" "${password_file[@]}" --json
|
||||||
|
|
Loading…
Reference in a new issue