Fixing the backup script

This commit is contained in:
Bob Mottram 2014-10-02 16:04:42 +01:00
parent f46cc04d36
commit d8d622566d
1 changed files with 2 additions and 2 deletions

View File

@ -416,11 +416,11 @@ function create_backup_script {
echo 'fi' >> /usr/bin/$BACKUP_SCRIPT_NAME
echo 'echo "Cleaning up backup files"' >> /usr/bin/$BACKUP_SCRIPT_NAME
echo -n 'duplicity --encrypt-key $GPG_KEY --force cleanup '
echo -n 'duplicity --encrypt-key $GPG_KEY --force cleanup ' >> /usr/bin/$BACKUP_SCRIPT_NAME
echo "file://$USB_MOUNT/backup" >> /usr/bin/$BACKUP_SCRIPT_NAME
echo 'echo "Removing old backups"' >> /usr/bin/$BACKUP_SCRIPT_NAME
echo -n 'duplicity --encrypt-key $GPG_KEY --force remove-all-but-n-full 2 '
echo -n 'duplicity --encrypt-key $GPG_KEY --force remove-all-but-n-full 2 ' >> /usr/bin/$BACKUP_SCRIPT_NAME
echo "file://$USB_MOUNT/backup" >> /usr/bin/$BACKUP_SCRIPT_NAME
echo '' >> /usr/bin/$BACKUP_SCRIPT_NAME