From d08a9594a694264d3b8db2d21bb14bb3f4d1c331 Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Wed, 25 Dec 2019 22:15:32 +0100 Subject: [PATCH] Reduce time to keep B2 backups --- b2-backup.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/b2-backup.sh b/b2-backup.sh index b36a9c2..8543347 100755 --- a/b2-backup.sh +++ b/b2-backup.sh @@ -25,12 +25,12 @@ export PASSPHRASE=${GPG_PASSPHRASE} LOCAL_DIR="/media/usb0/backup" # ----------------------------------------------------------------------------- -# Remove files older than 30 days. +# Remove files older than 15 days. # ----------------------------------------------------------------------------- -echo -e "${CYAN}[${SCRIPT}] Remove files older than 30 days ${NC}" +echo -e "${CYAN}[${SCRIPT}] Remove files older than 15 days ${NC}" -duplicity remove-older-than 30D --force \ +duplicity remove-older-than 15D --force \ --encrypt-sign-key $GPG_KEY \ b2://${B2_ACCOUNT}:${B2_KEY}@${B2_BUCKET}