From 711e5982da5dc378ff7224c59cf472c1d2eceb71 Mon Sep 17 00:00:00 2001 From: Jeffrey Paul Date: Thu, 30 Jan 2014 07:26:35 +0100 Subject: [PATCH] some more useful status output --- osxbackup/backup.command | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/osxbackup/backup.command b/osxbackup/backup.command index d0e4310..df80fdf 100755 --- a/osxbackup/backup.command +++ b/osxbackup/backup.command @@ -14,10 +14,9 @@ export PASSPHRASE="$(cat $PASSPHRASEFILE)" OPTS+=" -v 5" OPTS+=" --exclude-globbing-filelist ${HOME}/.local/etc/duplicity.exclude" -OPTS+=" --volsize 100" -OPTS+=" --asynchronous-upload" -OPTS+=" --allow-source-mismatch" -GPGOPTS="--compress-algo=bzip2 --bzip2-compress-level=9" +#OPTS+=" --asynchronous-upload" +#OPTS+=" --allow-source-mismatch" +#GPGOPTS="--compress-algo=bzip2 --bzip2-compress-level=9" if [ "$1" == "--verify" ]; then time \ @@ -27,4 +26,11 @@ else time \ duplicity --gpg-options "$GPGOPTS" \ $EXTRADUPLICITY $OPTS $RE ${HOME}/ $BACKUPDEST + echo "attempted backup to $BACKUPDEST" + if [ $? ]; then + echo "backup failed!" > /dev/stderr + exit 127 + else + echo "Successfully completed backup to ${BACKUPDEST}." + fi fi