Fixed mysql when DB has no data

This commit is contained in:
Deon George 2014-06-19 12:57:09 +10:00
parent 2014a23e0e
commit 7c4866dd43
1 changed files with 6 additions and 0 deletions

View File

@ -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