This commit is contained in:
TamCore 2014-10-09 22:50:28 +02:00
parent 15095e5c67
commit 8fa124161b

View file

@ -72,6 +72,6 @@ fi
nice -n19 ionice -c3 rsync -avz -e "ssh -c arcfour" --{bwlimit=50000,ignore-times,delete-before,inplace,progress} $RSYNC_OPTS --exclude="????.??.??" --exclude="/vz/"{dump,lock,root,vztmp}"/*" /vz $DESTINATION
if [ "$1" = "--full" ]; then
if [ "$FULL_BACKUP" = "yes" ]; then
ssh $( echo $DESTINATION | cut -d\: -f1 ) "find $( echo $DESTINATION | cut -d\: -f2 )/* -maxdepth 0 -iname '????.??.??' | head -n -$KEEP_COUNT | xargs rm -rf"
fi