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

This commit is contained in:
zertrin 2015-01-21 15:59:42 +01:00
parent c12bca41e0
commit b34c7a5986

View file

@ -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