Fix: file test if there are no previous backup
This commit is contained in:
parent
f5f15dc887
commit
0ca7843206
|
@ -8,7 +8,7 @@ DUMPS=7
|
||||||
LEVEL0=$(find $BACKUPS -name "*full.tgz" | sort | tail -n1)
|
LEVEL0=$(find $BACKUPS -name "*full.tgz" | sort | tail -n1)
|
||||||
INCR=$(find $BACKUPS -name "*incremental.tgz" | wc -l)
|
INCR=$(find $BACKUPS -name "*incremental.tgz" | wc -l)
|
||||||
|
|
||||||
if [ -e $LEVEL0 ] && [ $INCR -le $DUMPS ]
|
if [ ! -z $LEVEL0 ] && [ $INCR -le $DUMPS ]
|
||||||
then
|
then
|
||||||
TYPE=incremental
|
TYPE=incremental
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue