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