Fixed mysql when DB has no data
This commit is contained in:
parent
2014a23e0e
commit
7c4866dd43
@ -96,6 +96,12 @@ listdb | while read db; do
|
||||
|
||||
size=$(getsize $db);
|
||||
|
||||
# We need to skip this DB if it is empty
|
||||
if [ -z "$size" ]; then
|
||||
[ -n "$DEBUG" ] && echo "Skipping DB ($db), with no size ($size)"
|
||||
continue
|
||||
fi
|
||||
|
||||
[ -n "$DEBUG" ] && echo "Processing DB ($db), with size ($size)"
|
||||
|
||||
# Backup to TSM
|
||||
|
Reference in New Issue
Block a user