summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
740087d)
git-svn-id: http://code.autistici.org/svn/backupninja/trunk@529
758a04ac-41e6-0310-8a23-
8373a73cc35d
dup:
. Support duplicity >= 0.4.3 invocation syntax (--ssh-command option
is not supported anymore) (Closes: #447425)
dup:
. Support duplicity >= 0.4.3 invocation syntax (--ssh-command option
is not supported anymore) (Closes: #447425)
+ . New tmpdir configuration option, very useful in case duplicity tends
+ to fill up /tmp.
ldap:
. Fixed shell command quoting issues, missing 'then' clauses, cleaned up
compress=yes to be less redundant and not create empty uncompressed
ldap:
. Fixed shell command quoting issues, missing 'then' clauses, cleaned up
compress=yes to be less redundant and not create empty uncompressed
# default is yes. set to no to skip the test if the remote host is alive
#testconnect = no
# default is yes. set to no to skip the test if the remote host is alive
#testconnect = no
+# temporary directory used by duplicity
+# (default = /tmp or /usr/tmp, depending on the system)
+#tmpdir = /var/tmp/duplicity
+
######################################################
## gpg section
## (how to encrypt and optionally sign the backups)
######################################################
## gpg section
## (how to encrypt and optionally sign the backups)
getconf options
getconf testconnect yes
getconf nicelevel 0
getconf options
getconf testconnect yes
getconf nicelevel 0
setsection gpg
getconf password
setsection gpg
getconf password
+### deal with tmpdir ###
+precmd=
+if [ -n "$tmpdir" ]; then
+ if [ ! -d "$tmpdir" ]; then
+ info "Temporary directory ($tmpdir) does not exist, creating it."
+ mkdir -p "$tmpdir"
+ [ $? -eq 0 ] || fatal "Could not create temporary directory ($tmpdir)."
+ fi
+ info "Using $tmpdir as TMPDIR"
+ precmd="${precmd}TMPDIR=$tmpdir "
+fi
+
### EXECUTE ###
execstr=${execstr//\\*/\\\\\\*}
### EXECUTE ###
execstr=${execstr//\\*/\\\\\\*}
-debug "duplicity $execstr --exclude '**' / $execstr_serverpart"
+debug "$precmd duplicity $execstr --exclude '**' / $execstr_serverpart"
if [ ! $test ]; then
export PASSPHRASE=$password
output=`nice -n $nicelevel \
su -c \
if [ ! $test ]; then
export PASSPHRASE=$password
output=`nice -n $nicelevel \
su -c \
- "duplicity $execstr --exclude '**' / $execstr_serverpart 2>&1"`
+ "$precmd duplicity $execstr --exclude '**' / $execstr_serverpart 2>&1"`
code=$?
if [ $code -eq 0 ]; then
debug $output
code=$?
if [ $code -eq 0 ]; then
debug $output