From 2f028f54b2761511afa1ede43657fcd7ca5aeecc Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Fri, 7 May 2021 22:57:51 +0200 Subject: [PATCH] chg: [mariadb] move schema dump in alphabetical front of data dumps Signed-off-by: Valentin Lab --- mariadb/resources/bin/mysql-backup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"