From 792d6b2ee36a916992a8ed5f4bd9d7cfc3be7f74 Mon Sep 17 00:00:00 2001 From: Lucas Costa Beyeler Date: Mon, 17 Apr 2017 12:10:59 -0300 Subject: [PATCH] Fix for Issue #31 - Error RestoreonAccount --- src/zmbackup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zmbackup b/src/zmbackup index dac52f9..5b16a0b 100755 --- a/src/zmbackup +++ b/src/zmbackup @@ -133,7 +133,7 @@ build_restore_list() echo $i >> $TEMPACCOUNT done else - grep $1 /backup/sessions.txt | grep -v "SESSION" | cut -d: -f2 > $TEMPACCOUNT + grep $1 $WORKDIR/sessions.txt | grep -v "SESSION" | cut -d: -f2 > $TEMPACCOUNT fi if [[ "$1" == "full-"* ]]; then for i in $(egrep 'SESSION:' $WORKDIR/sessions.txt | egrep 'started' | awk '{print $2}' | sort | uniq); do