Skip to content

Commit

Permalink
Removing full+inc restore because the problems it is having.
Browse files Browse the repository at this point in the history
  • Loading branch information
lucascbeyeler committed Sep 5, 2017
1 parent 368f358 commit 1f91da3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 19 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
21 changes: 3 additions & 18 deletions src/zmbackup
Original file line number Diff line number Diff line change
Expand Up @@ -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
# <lucas.beyeler@4linux.com.br>
# <lucas.costab@outlook.com>
################################################################################
Expand Down Expand Up @@ -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
}

################################################################################
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1f91da3

Please sign in to comment.