Browse Source

chg: [mariadb] move schema dump in alphabetical front of data dumps

Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
pull/1/head
Valentin Lab 4 years ago
parent
commit
2f028f54b2
  1. 2
      mariadb/resources/bin/mysql-backup

2
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"

Loading…
Cancel
Save