b34c7a59867842a1faf44498e30cbaaaec42c540

Author
zertrin <zertrin@gmail.com>
Committer
zertrin <zertrin@gmail.com>
Date

Message

Include the include/exclude globbing file in the backup tarball if present

Diff

 1diff --git a/duplicity-backup.sh b/duplicity-backup.sh
 2index af888002aba24f6f45f119859f3cfba27bcfceac..e384702e30f73e2dfaa7a69572e431c208bead36 100755
 3--- a/duplicity-backup.sh
 4+++ b/duplicity-backup.sh
 5@@ -554,6 +554,11 @@ backup_this_script()
 6     echo "      3. Config file: ${CONFIG}"
 7   fi
 8 
 9+  if [ ! -z "$INCEXCFILE" -a -f "$INCEXCFILE" ];
10+  then
11+    echo "      4. Include/Exclude globbing file: ${INCEXCFILE}"
12+  fi
13+
14   echo "Backup tarball will be encrypted and saved to: `pwd`/${TMPFILENAME}"
15   echo
16   echo ">> Are you sure you want to do that ('yes' to continue)?"
17@@ -571,6 +576,11 @@ backup_this_script()
18     cp $CONFIG ${TMPDIR}/
19   fi
20 
21+  if [ ! -z "$INCEXCFILE" -a -f "$INCEXCFILE" ];
22+  then
23+    cp $INCEXCFILE ${TMPDIR}/
24+  fi
25+
26   if [ ! -z "$GPG_ENC_KEY" -a ! -z "$GPG_SIGN_KEY" ]; then
27     export GPG_TTY=`tty`
28     if [ "$GPG_ENC_KEY" = "$GPG_SIGN_KEY" ]; then