Reduce time to keep B2 backups

This commit is contained in:
Wojciech Kozlowski 2019-12-25 22:15:32 +01:00
parent e3b4209ea5
commit d08a9594a6

View File

@ -25,12 +25,12 @@ export PASSPHRASE=${GPG_PASSPHRASE}
LOCAL_DIR="/media/usb0/backup" 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 \ --encrypt-sign-key $GPG_KEY \
b2://${B2_ACCOUNT}:${B2_KEY}@${B2_BUCKET} b2://${B2_ACCOUNT}:${B2_KEY}@${B2_BUCKET}