mirror of
https://0xacab.org/liberate/backupninja.git
synced 2024-11-26 12:42:46 +01:00
Add full-if-older-than with half the keep duration
This commit is contained in:
parent
582b7521cb
commit
4f4ee9b0d9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user