diff options
author | Erich Eckner <git@eckner.net> | 2019-11-08 12:07:57 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-11-08 12:07:57 +0100 |
commit | 1c7788b7a9ada127d3be8d7f554ef711e04a3c1a (patch) | |
tree | 2e87fd69034a0edc84110cffbe0ef9df171f23b8 | |
parent | 0d6d785ee6b5cd5eeb2b542d011943d7e1b15157 (diff) | |
download | devops-1c7788b7a9ada127d3be8d7f554ef711e04a3c1a.tar.xz |
replicate-db: pv the compressed file - this way, we get an ETA
-rwxr-xr-x | replicate-db | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/replicate-db b/replicate-db index 482cb58..76c737b 100755 --- a/replicate-db +++ b/replicate-db @@ -57,7 +57,7 @@ ssh master@10.100.10.1 ' 3306 \ 'replikat' \ "${replikat_pw}" - xzcat "${tmp_file}" | pv + pv "${tmp_file}" | xzcat xzgrep -- '^-- CHANGE MASTER TO ' "${tmp_file}" | \ sed 's/^-- //' printf 'START SLAVE;\n' |