Merge pull request #75 from csmithATsquiz/tmpdir

add an option to set the tmpdir for duplicity to use.
This commit is contained in:
zertrin 2014-12-05 10:56:51 +01:00
commit edca6379ec
2 changed files with 7 additions and 0 deletions

View file

@ -269,3 +269,6 @@ MAIL="mailx" # default command for Linux mail
# printed to the logfile. This way, you can see if the problem is with the
# script or with duplicity.
#ECHO=$(which echo)
# Set the tmpdir for duplicity to use.
#TMPDIR="/tmp"

View file

@ -177,6 +177,10 @@ if [[ -n "$FTP_PASSWORD" ]]; then
export FTP_PASSWORD
fi
if [[ -n "$TMPDIR" ]]; then
export TMPDIR
fi
# Ensure a trailing slash always exists in the log directory name
LOGDIR="${LOGDIR%/}/"