Include the include/exclude globbing file in the backup tarball if present
This commit is contained in:
parent
c12bca41e0
commit
b34c7a5986
1 changed files with 10 additions and 0 deletions
|
|
@ -554,6 +554,11 @@ backup_this_script()
|
||||||
echo " 3. Config file: ${CONFIG}"
|
echo " 3. Config file: ${CONFIG}"
|
||||||
fi
|
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 "Backup tarball will be encrypted and saved to: `pwd`/${TMPFILENAME}"
|
||||||
echo
|
echo
|
||||||
echo ">> Are you sure you want to do that ('yes' to continue)?"
|
echo ">> Are you sure you want to do that ('yes' to continue)?"
|
||||||
|
|
@ -571,6 +576,11 @@ backup_this_script()
|
||||||
cp $CONFIG ${TMPDIR}/
|
cp $CONFIG ${TMPDIR}/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ ! -z "$INCEXCFILE" -a -f "$INCEXCFILE" ];
|
||||||
|
then
|
||||||
|
cp $INCEXCFILE ${TMPDIR}/
|
||||||
|
fi
|
||||||
|
|
||||||
if [ ! -z "$GPG_ENC_KEY" -a ! -z "$GPG_SIGN_KEY" ]; then
|
if [ ! -z "$GPG_ENC_KEY" -a ! -z "$GPG_SIGN_KEY" ]; then
|
||||||
export GPG_TTY=`tty`
|
export GPG_TTY=`tty`
|
||||||
if [ "$GPG_ENC_KEY" = "$GPG_SIGN_KEY" ]; then
|
if [ "$GPG_ENC_KEY" = "$GPG_SIGN_KEY" ]; then
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue