--- a/debian/scripts/koha-dump +++ a/debian/scripts/koha-dump @@ -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"