summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-11-08 12:07:57 +0100
committerErich Eckner <git@eckner.net>2019-11-08 12:07:57 +0100
commit1c7788b7a9ada127d3be8d7f554ef711e04a3c1a (patch)
tree2e87fd69034a0edc84110cffbe0ef9df171f23b8
parent0d6d785ee6b5cd5eeb2b542d011943d7e1b15157 (diff)
downloaddevops-1c7788b7a9ada127d3be8d7f554ef711e04a3c1a.tar.xz
replicate-db: pv the compressed file - this way, we get an ETA
-rwxr-xr-xreplicate-db2
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'