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
abf7a4bb
Commit
abf7a4bb
authored
15 years ago
by
Olivier Berger
Browse files
Options
Downloads
Patches
Plain Diff
Implement Debian #535996 to use --full-if-older-than
parent
4f4ee9b0
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
handlers/dup.helper.in
+13
-2
13 additions, 2 deletions
handlers/dup.helper.in
handlers/dup.in
+7
-7
7 additions, 7 deletions
handlers/dup.in
with
20 additions
and
9 deletions
handlers/dup.helper.in
+
13
−
2
View file @
abf7a4bb
...
...
@@ -123,6 +123,7 @@ do_dup_dest() {
formItem
"destdir"
"
$dup_destdir
"
formItem
"keep"
"
$dup_keep
"
formItem
"incremental"
"
$dup_incremental
"
formItem
"increments"
"
$dup_increments
"
formItem
"bandwidthlimit"
"
$dup_bandwidth
"
formItem
"sshoptions"
"
$dup_sshoptions
"
formDisplay
...
...
@@ -139,8 +140,9 @@ do_dup_dest() {
dup_destdir
=
${
thereply
[2]
}
dup_keep
=
${
thereply
[3]
}
dup_incremental
=
${
thereply
[4]
}
dup_bandwidth
=
${
thereply
[5]
}
dup_sshoptions
=
${
thereply
[6]
}
dup_increments
=
${
thereply
[5]
}
dup_bandwidth
=
${
thereply
[6]
}
dup_sshoptions
=
${
thereply
[7]
}
done
set
+o noglob
...
...
@@ -406,6 +408,14 @@ EOF
# if incremental = no, perform a full backup in order to start a new backup set
incremental =
$dup_incremental
# how many days of incremental backups before doing a full backup again ; default is 30 days.
# (you can also use the time format of duplicity)
# if 'increments = keep' is set : do not start another full backup,
# but keep doing incremental backups
#increments = 30
#increments = keep
increments =
$dup_increments
# how many days of data to keep ; default is 60 days.
# (you can also use the time format of duplicity)
# 'keep = yes' means : do not delete old data, the remote host will take care of this
...
...
@@ -510,6 +520,7 @@ dup_wizard() {
dup_excludes
=
dup_vsincludes
=
dup_incremental
=
yes
dup_increments
=
30
dup_keep
=
60
dup_bandwidth
=
dup_sshoptions
=
...
...
This diff is collapsed.
Click to expand it.
handlers/dup.in
+
7
−
7
View file @
abf7a4bb
...
...
@@ -24,6 +24,7 @@ getconf exclude
setsection dest
getconf incremental
yes
getconf increments 30
getconf keep 60
getconf desturl
getconf awsaccesskeyid
...
...
@@ -164,14 +165,13 @@ if [ "$incremental" == "no" ]; then
execstr_command
=
"full"
fi
else
if
[
"
$keep
"
!=
"yes"
]
;
then
fullifolderthan
=
"30D"
if
[
"
`
echo
$keep
|
tr
-d
0-9
`
"
==
""
]
;
then
#let "fullifolderthan = keep / 2"
fullifolderthan
=
$((
$keep
/
2
))
fullifolderthan
=
"
${
fullifolderthan
}
D"
# we're in incremental mode
if
[
"
$increments
"
!=
"keep"
]
;
then
# if we don't want to keep every increments
if
[
"
`
echo
$increments
|
tr
-d
0-9
`
"
==
""
]
;
then
increments
=
"
${
increments
}
D"
fi
execstr_options
=
"
${
execstr_options
}
--full-if-older-than
$
fullifolderthan
"
execstr_options
=
"
${
execstr_options
}
--full-if-older-than
$
increments
"
fi
fi
...
...
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