diff options
Diffstat (limited to 'z-distfiles/scripts-gw-1.1/mysql-dump-all')
-rwxr-xr-x | z-distfiles/scripts-gw-1.1/mysql-dump-all | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/z-distfiles/scripts-gw-1.1/mysql-dump-all b/z-distfiles/scripts-gw-1.1/mysql-dump-all deleted file mode 100755 index 6cbf58c..0000000 --- a/z-distfiles/scripts-gw-1.1/mysql-dump-all +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -if [ "x$1" == "x--help" ]; then - echo "Usage: mysql-dump-all mysql-root-pass /backup/dir" - echo - echo "Dumps all mysql databases into the given /backup/dir/" - exit 0 -fi - -DBS=`mysql -u root -p${1} -s -e 'show databases;' | grep -v 'Database'` - -for db in $DBS -do - mysqldump -u root -p${1} ${db} > ${2}/${db}.sql -done |