From 53d933b7157f6a1dc8f7709afbf8bf76d7f2c61c Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Sun, 21 Aug 2016 21:46:01 +0200 Subject: [PATCH] Don't export settings that are only used within the script --- restic-cron | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/restic-cron b/restic-cron index 0dc4130..8c7e579 100755 --- a/restic-cron +++ b/restic-cron @@ -21,7 +21,9 @@ export SSH_AUTH_SOCK=/run/user/1000/keyring/ssh export SSH_AGENT_PID=$(pidof ssh-agent) # Restic settings -export RESTIC_BACKUP_OPTIONS="--exclude-file=$HOME/.config/restic/exclude" +RESTIC_BACKUP_OPTIONS="--exclude-file=$HOME/.config/restic/exclude" +RESTIC_FORGET_OPTIONS="--keep-weekly=4 --keep-monthly=12 --keep-yearly=60" +RESTIC_DIR="$HOME" export RESTIC_REPOSITORY="sftp://void//media/Backup/entropy" # Start the backup by asking for the passphrase