From d935d81c05f67bcd228cfeb419aae7fc675c8c8b Mon Sep 17 00:00:00 2001 From: TamCore Date: Thu, 30 Oct 2014 21:18:42 +0100 Subject: [PATCH] forgot $RSYNC_OPTS in a few places --- vzprestore.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vzprestore.sh b/vzprestore.sh index d8ef12b..3eca1dd 100755 --- a/vzprestore.sh +++ b/vzprestore.sh @@ -55,7 +55,7 @@ fi # FUNCTIONS function _list_backups { echo "- Set '${2/^\.\$/current}'" - CURRENT_SET="$( rsync $1/$2/$3 | grep -oE '[0-9]+$' )" + CURRENT_SET="$( rsync $RSYNC_OPTS $1/$2/$3 | grep -oE '[0-9]+$' )" if [ "$CURRENT_SET" != "" ]; then for VEID in $CURRENT_SET; do echo "-- $VEID" @@ -72,7 +72,7 @@ if [ "$LIST_BACKUPS" = "yes" ]; then echo "Available Backups:" _list_backups $SOURCE . $VE_PRIVATE - BACKUP_SETS="$( rsync $SOURCE | grep -oE '[0-9]+\.[0-9]+\.[0-9]+$' )" + BACKUP_SETS="$( rsync $RSYNC_OPTS $SOURCE | grep -oE '[0-9]+\.[0-9]+\.[0-9]+$' )" if [ "$BACKUP_SETS" != "" ]; then for BACKUP_SET in $BACKUP_SETS; do echo