From 3c3be406090c99530983d3ef1f00359a43c12c11 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 29 Sep 2014 17:39:21 +0100 Subject: [PATCH] Forgetting period --- install-freedombone.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install-freedombone.sh b/install-freedombone.sh index 7bf87182..3d0aab43 100755 --- a/install-freedombone.sh +++ b/install-freedombone.sh @@ -229,6 +229,9 @@ MAX_PHP_MEMORY=32 # default MariaDB password MARIADB_PASSWORD= +# The obnam forgetting period +BACKUP_PERIOD_DAYS=30 + # Whether to encrypt backups to the USB drive ENCRYPT_BACKUPS="yes" @@ -3174,6 +3177,7 @@ function create_backup_script { fi echo '#!/bin/bash' > /usr/bin/$BACKUP_SCRIPT_NAME + echo "obnam forget --keep=${BACKUP_PERIOD_DAYS}d" >> /usr/bin/$BACKUP_SCRIPT_NAME echo "if [ -b $USB_DRIVE ]; then" >> /usr/bin/$BACKUP_SCRIPT_NAME echo " if [ ! -d $USB_MOUNT ]; then" >> /usr/bin/$BACKUP_SCRIPT_NAME echo " mkdir $USB_MOUNT" >> /usr/bin/$BACKUP_SCRIPT_NAME