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
Custom issue tracker
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
Liberate
backupninja
Commits
33365d09
Commit
33365d09
authored
14 years ago
by
intrigeri
Browse files
Options
Downloads
Patches
Plain Diff
dup: use --archive-dir /var/backups/duplicity unless the user has specified it (Closes: 580213)
parent
25f50151
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ChangeLog
+3
-0
3 additions, 0 deletions
ChangeLog
handlers/dup.in
+9
-0
9 additions, 0 deletions
handlers/dup.in
with
12 additions
and
0 deletions
ChangeLog
+
3
−
0
View file @
33365d09
...
...
@@ -11,6 +11,9 @@ version 0.9.8 -- UNRELEASED
0.6.01 or newer, that depends on local caching (Closes: #572721)
. dup: ignore anything but digits and "." when comparing versions
(Closes: #578987)
. Put archive directory (cache) into /var/backups/duplicity rather
than the default /root/.cache/duplicity, unless the user
has specified it (Closes: 580213)
version 0.9.7 -- January 27, 2010
backupninja changes
...
...
This diff is collapsed.
Click to expand it.
handlers/dup.in
+
9
−
0
View file @
33365d09
...
...
@@ -193,6 +193,15 @@ if [ -n "$tmpdir" ]; then
precmd
=
"
${
precmd
}
TMPDIR=
$tmpdir
"
fi
### Archive directory
# duplicity >= 0.6.01 enables the archive_dir by default, let's put it into /var/backups
# unless the user has specified it.
if
[
"
$duplicity_major
"
-ge
0
-a
"
$duplicity_minor
"
-ge
6
-a
"
$duplicity_sub
"
-ge
1
]
;
then
if
echo
"
${
options
}
"
|
grep
-qv
--
"--archive-dir"
;
then
execstr_options
=
"
${
execstr_options
}
--archive-dir /var/backups/duplicity"
fi
fi
### Cleanup old backup sets (or not)
if
[
"
$keep
"
!=
"yes"
]
;
then
if
[
"
`
echo
$keep
|
tr
-d
0-9
`
"
==
""
]
;
then
...
...
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