diff --git a/debian/scripts/koha-dump b/debian/scripts/koha-dump index ff171a0..503de6b 100755 --- a/debian/scripts/koha-dump +++ b/debian/scripts/koha-dump @@ -2,17 +2,17 @@ # # koha-dump: dump all contents and configs for a Koha site # Copyright 2010 Catalyst IT, Ltd -# +# # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. -# +# # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. -# +# # You should have received a copy of the GNU General Public License # along with this program. If not, see . @@ -69,8 +69,8 @@ dump_instance() [ -z "$backupdir" ] && backupdir="/var/spool/koha/$name" dbdump="$backupdir/$name-$date.sql.gz" [ "$quiet" = "no" ] && echo "* DB to $dbdump" - mysqldump --databases --host="$mysqlhost" \ - --user="$mysqluser" --password="$mysqlpass" "$mysqldb" | + MYSQL_PWD="$mysqlpass" mysqldump --databases --host="$mysqlhost" \ + --user="$mysqluser" "$mysqldb" | gzip > "$dbdump" chown "root:$name-koha" "$dbdump" chmod g+r "$dbdump"