Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
backupninja
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
lyz
backupninja
Commits
8ed22e66
Commit
8ed22e66
authored
17 years ago
by
intrigeri
Browse files
Options
Downloads
Patches
Plain Diff
dup: new tmpdir config option, useful when duplicity fills up /tmp
parent
440a0ef9
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
ChangeLog
+2
-0
2 additions, 0 deletions
ChangeLog
examples/example.dup
+4
-0
4 additions, 0 deletions
examples/example.dup
handlers/dup.in
+15
-2
15 additions, 2 deletions
handlers/dup.in
with
21 additions
and
2 deletions
ChangeLog
+
2
−
0
View file @
8ed22e66
...
...
@@ -18,6 +18,8 @@ version 0.9.5 -- unreleased
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
...
...
This diff is collapsed.
Click to expand it.
examples/example.dup
+
4
−
0
View file @
8ed22e66
...
...
@@ -8,6 +8,10 @@ nicelevel = 19
# 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)
...
...
This diff is collapsed.
Click to expand it.
handlers/dup.in
+
15
−
2
View file @
8ed22e66
...
...
@@ -7,6 +7,7 @@
getconf options
getconf testconnect
yes
getconf nicelevel 0
getconf tmpdir
setsection gpg
getconf password
...
...
@@ -170,16 +171,28 @@ fi
set
+o noglob
### 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
//\\*/\\\\\\*
}
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
\
"duplicity
$execstr
--exclude '**' /
$execstr_serverpart
2>&1"
`
"
$precmd
duplicity
$execstr
--exclude '**' /
$execstr_serverpart
2>&1"
`
code
=
$?
if
[
$code
-eq
0
]
;
then
debug
$output
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment