diff --git a/mariadb/resources/bin/mysql-backup b/mariadb/resources/bin/mysql-backup index 139366d..485ee38 100755 --- a/mariadb/resources/bin/mysql-backup +++ b/mariadb/resources/bin/mysql-backup @@ -68,7 +68,7 @@ for db in "${DBS[@]}"; do [ -d "$dst" ] && mv "$dst" "$dst.old" mkdir -p "$dst.inprogress" (( start = SECONDS )) - md "$db" --routines --no-data --add-drop-database --database "$db" | gzip --rsyncable > "$dst.inprogress/schema.sql.gz" + md "$db" --routines --no-data --add-drop-database --database "$db" | gzip --rsyncable > "$dst.inprogress/00-schema.sql.gz" tables=$(mysql_tables "$db") for table in $tables; do backup_file="$dst.inprogress/${table}.sql.gz"