From b34c7a59867842a1faf44498e30cbaaaec42c540 Mon Sep 17 00:00:00 2001 From: zertrin Date: Wed, 21 Jan 2015 15:59:42 +0100 Subject: [PATCH] Include the include/exclude globbing file in the backup tarball if present --- duplicity-backup.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/duplicity-backup.sh b/duplicity-backup.sh index af88800..e384702 100755 --- a/duplicity-backup.sh +++ b/duplicity-backup.sh @@ -554,6 +554,11 @@ backup_this_script() echo " 3. Config file: ${CONFIG}" fi + if [ ! -z "$INCEXCFILE" -a -f "$INCEXCFILE" ]; + then + echo " 4. Include/Exclude globbing file: ${INCEXCFILE}" + fi + echo "Backup tarball will be encrypted and saved to: `pwd`/${TMPFILENAME}" echo echo ">> Are you sure you want to do that ('yes' to continue)?" @@ -571,6 +576,11 @@ backup_this_script() cp $CONFIG ${TMPDIR}/ fi + if [ ! -z "$INCEXCFILE" -a -f "$INCEXCFILE" ]; + then + cp $INCEXCFILE ${TMPDIR}/ + fi + if [ ! -z "$GPG_ENC_KEY" -a ! -z "$GPG_SIGN_KEY" ]; then export GPG_TTY=`tty` if [ "$GPG_ENC_KEY" = "$GPG_SIGN_KEY" ]; then