some more useful status output
This commit is contained in:
parent
5abeee543b
commit
711e5982da
|
@ -14,10 +14,9 @@ export PASSPHRASE="$(cat $PASSPHRASEFILE)"
|
||||||
|
|
||||||
OPTS+=" -v 5"
|
OPTS+=" -v 5"
|
||||||
OPTS+=" --exclude-globbing-filelist ${HOME}/.local/etc/duplicity.exclude"
|
OPTS+=" --exclude-globbing-filelist ${HOME}/.local/etc/duplicity.exclude"
|
||||||
OPTS+=" --volsize 100"
|
#OPTS+=" --asynchronous-upload"
|
||||||
OPTS+=" --asynchronous-upload"
|
#OPTS+=" --allow-source-mismatch"
|
||||||
OPTS+=" --allow-source-mismatch"
|
#GPGOPTS="--compress-algo=bzip2 --bzip2-compress-level=9"
|
||||||
GPGOPTS="--compress-algo=bzip2 --bzip2-compress-level=9"
|
|
||||||
|
|
||||||
if [ "$1" == "--verify" ]; then
|
if [ "$1" == "--verify" ]; then
|
||||||
time \
|
time \
|
||||||
|
@ -27,4 +26,11 @@ else
|
||||||
time \
|
time \
|
||||||
duplicity --gpg-options "$GPGOPTS" \
|
duplicity --gpg-options "$GPGOPTS" \
|
||||||
$EXTRADUPLICITY $OPTS $RE ${HOME}/ $BACKUPDEST
|
$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
|
fi
|
||||||
|
|
Loading…
Reference in New Issue