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
ffac2e56
Commit
ffac2e56
authored
17 years ago
by
intrigeri
Browse files
Options
Downloads
Patches
Plain Diff
rdiff: handle "keep = yes" to disable old backups removal (Closes: #424633)
parent
5cf34cae
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
ChangeLog
+1
-0
1 addition, 0 deletions
ChangeLog
examples/example.rdiff
+2
-0
2 additions, 0 deletions
examples/example.rdiff
handlers/rdiff
+22
-18
22 additions, 18 deletions
handlers/rdiff
with
25 additions
and
18 deletions
ChangeLog
+
1
−
0
View file @
ffac2e56
...
...
@@ -23,6 +23,7 @@ version 0.9.5 -- unreleased
(Closes: #396578)
rdiff:
. Added cstream support to allow for bandwidth limiting
. Handle "keep = yes" to disable old backups removal (Closes: #424633)
rub
. Fixed typo in rub handler that caused it to not work
. Changed to use lib/vserver code
...
...
This diff is collapsed.
Click to expand it.
examples/example.rdiff
+
2
−
0
View file @
ffac2e56
...
...
@@ -38,6 +38,8 @@ type = local
# how many days of data to keep
# (you can also use the time format of rdiff-backup, e.g. 6D5h)
# (to keep everything, set this to yes)
#keep = yes
keep = 60
# A few notes about includes and excludes:
...
...
This diff is collapsed.
Click to expand it.
handlers/rdiff
+
22
−
18
View file @
ffac2e56
...
...
@@ -152,6 +152,8 @@ esac
### REMOVE OLD BACKUPS ###
if
[
"
$keep
"
!=
yes
]
;
then
if
[
"
`
echo
$keep
|
tr
-d
0-9
`
"
==
""
]
;
then
# add D if no other date unit is specified
keep
=
"
${
keep
}
D"
...
...
@@ -175,6 +177,8 @@ if [ $test = 0 ]; then
fi
fi
fi
# Add cstream
if
[
!
-z
$bwlimit
]
;
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