Skip to content
Snippets Groups Projects
Commit 4f4ee9b0 authored by olivier's avatar olivier
Browse files

Add full-if-older-than with half the keep duration

parent 582b7521
Branches
Tags
No related merge requests found
......@@ -163,6 +163,16 @@ if [ "$incremental" == "no" ]; then
else
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"
fi
execstr_options="${execstr_options} --full-if-older-than $fullifolderthan"
fi
fi
### Cleanup options
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment