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

This commit is contained in:
olivier 2010-05-02 12:05:10 +02:00
parent 582b7521cb
commit 4f4ee9b0d9

View File

@ -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