summaryrefslogtreecommitdiff
path: root/dumps/backup-dbs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'dumps/backup-dbs.sh')
-rwxr-xr-xdumps/backup-dbs.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/dumps/backup-dbs.sh b/dumps/backup-dbs.sh
new file mode 100755
index 0000000..29e6367
--- /dev/null
+++ b/dumps/backup-dbs.sh
@@ -0,0 +1,6 @@
+#!/bin/bash
+cd $(dirname $0)
+grep -v '^#' .backup | while read DB
+do
+ mysqldump --column-statistics=0 ${LIGA_MYSQL_CONNECTION_OPTS} $DB > backup/$DB.sql
+done