From 8fa124161b40320bb40c61cd10ab042d546cbe46 Mon Sep 17 00:00:00 2001 From: TamCore Date: Thu, 9 Oct 2014 22:50:28 +0200 Subject: [PATCH] fixup for 39b3f5a40c5 --- vzpbackup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vzpbackup.sh b/vzpbackup.sh index af58635..851a2aa 100755 --- a/vzpbackup.sh +++ b/vzpbackup.sh @@ -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