Skip to content
Snippets Groups Projects
Commit ffac2e56 authored by intrigeri's avatar intrigeri
Browse files

rdiff: handle "keep = yes" to disable old backups removal (Closes: #424633)

parent 5cf34cae
Branches
Tags
No related merge requests found
......@@ -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
......
......@@ -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:
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment