From: Martin Pitt Date: Mon, 19 Dec 2016 09:12:50 +0000 (+0100) Subject: backup: Clean up old backups X-Git-Url: https://piware.de/gitweb/?a=commitdiff_plain;h=8fcb5b8bef8614cf1b111470bc2ae229746c86fd;p=bin.git backup: Clean up old backups --- 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