summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2006-12-19 13:37:19 +0000
committerweasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede>2006-12-19 13:37:19 +0000
commit85a033240f37aada0928519194a74f4eccf90342 (patch)
treed99c3aa78a0d9146159f8327991ae8e366fd7aea
parent4b8107ea4d3dea6b413b23261ef3da817825b819 (diff)
Ignore lost+found "database"
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@249 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
-rwxr-xr-xbackup-mysql2
1 files changed, 1 insertions, 1 deletions
diff --git a/backup-mysql b/backup-mysql
index 4826415..b68b877 100755
--- a/backup-mysql
+++ b/backup-mysql
@@ -50,7 +50,7 @@ for host in $HOSTS; do
DBs=$(
echo 'SHOW DATABASES;' | mysql --defaults-file="$mysqlcnf" --host="$host" | tail -n +2 |
while read db; do
- if [ "$db" = "innodb" -o "$db" = "test" ] ; then
+ if [ "$db" = "innodb" ] || [ "$db" = "test" ] || [ "$db" = "lost+found" ] ; then
continue;
fi
echo $db;