From 8fcb5b8bef8614cf1b111470bc2ae229746c86fd Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Mon, 19 Dec 2016 10:12:50 +0100 Subject: [PATCH] backup: Clean up old backups --- backup | 1 + 1 file changed, 1 insertion(+) diff --git a/backup b/backup index b254323..314fd74 100755 --- a/backup +++ b/backup @@ -28,3 +28,4 @@ notify-send "Backup started" mkdir -p $(dirname $LOG) env PASSPHRASE="$(cat ~/.backup-passphrase)" duplicity --allow-source-mismatch --full-if-older-than 1M --exclude-filelist .duplicity-ignore . rsync://piware.de/backup/donald >> $LOG || { notify-send "BACKUP FAILED!"; exit 1; } notify-send "Backup finished successfully" +duplicity remove-all-but-n-full 6 --force rsync://piware.de/backup/donald -- 2.39.5