From 1f91da3558ad46684f8dc991c957de958c213095 Mon Sep 17 00:00:00 2001 From: Lucas Costa Beyeler Date: Tue, 5 Sep 2017 09:01:35 -0300 Subject: [PATCH] Removing full+inc restore because the problems it is having. --- README.md | 2 +- src/zmbackup | 21 +++------------------ 2 files changed, 4 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 67ee27c..58787b6 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ Enter inside the folder zmbackup and execute the script install.sh. Follow the i ``` $ zmbackup -v -zmbackup version: 1.1.8 +zmbackup version: 1.1.9 ``` Open the folder /etc/cron.d/zmbackup.cron and adjust each job scheduled to the time you want the execution. If you configured zmbkpose or any old release before, please undo and use this file for scheduling. diff --git a/src/zmbackup b/src/zmbackup index 94b374e..5e05575 100755 --- a/src/zmbackup +++ b/src/zmbackup @@ -36,7 +36,7 @@ ################################################################################ # zmbackup: # -# 04/09/2017 - Version 1.1.8 - By Lucas Costa Beyeler +# 04/09/2017 - Version 1.1.9 - By Lucas Costa Beyeler # # ################################################################################ @@ -135,22 +135,7 @@ build_restore_list() else 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 - if [[ "$1" == "$i" ]]; then - echo $i >> $TEMPSESSION - INBETWEEN=1 - elif [[ "$INBETWEEN" -eq 1 ]] && [[ "$i" == "inc-"* ]]; then - echo $i >> $TEMPSESSION - elif [[ "$i" == "alias-"* ]] || [[ "$i" == "distlist-"* ]] || [[ "$i" == "ldap-"* ]]; then - continue - else - break - fi - done - else - echo $1 >> $TEMPSESSION - fi + echo $1 >> $TEMPSESSION } ################################################################################ @@ -646,7 +631,7 @@ case "$1" in show_help ;; "-v"|"--version" ) - echo "zmbackup version: 1.1.8" + echo "zmbackup version: 1.1.9" ;; * ) show_help