From 1c7788b7a9ada127d3be8d7f554ef711e04a3c1a Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 8 Nov 2019 12:07:57 +0100 Subject: replicate-db: pv the compressed file - this way, we get an ETA --- replicate-db | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' -- cgit v1.2.3-70-g09d2