Also cleanup the cache on backup

This commit is contained in:
Paul van Tilburg 2020-02-12 20:09:22 +01:00
parent 5e91ca7d44
commit 6be10b2648
Signed by: paul
GPG Key ID: C6DE073EDA9EEC4D
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ export SSH_AUTH_SOCK=/run/user/$UID/keyring/ssh
export SSH_AGENT_PID=$(pidof ssh-agent)
# Restic settings
RESTIC_BACKUP_OPTIONS="--exclude-file=$HOME/.config/restic/exclude"
RESTIC_BACKUP_OPTIONS="--exclude-file=$HOME/.config/restic/exclude --cleanup-cache"
RESTIC_FORGET_OPTIONS="--keep-weekly=4 --keep-monthly=12 --keep-yearly=60"
RESTIC_DIR="$HOME"
export RESTIC_REPOSITORY="sftp://void//media/Backup/entropy"