From c665b60bccdda32faf8c39f9646c0bd7dc31222a Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 17 Oct 2019 22:55:12 +0200 Subject: replicate-db: fix config path, setup walk-through, backup path --- replicate-db | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/replicate-db b/replicate-db index bd42dc8..af4fc36 100755 --- a/replicate-db +++ b/replicate-db @@ -39,12 +39,12 @@ sudo sed -i ' /^\s*\[mysqld]\s*$/ a group_concat_max_len = 4096 \ server-id = '"$RANDOM"' \ skip-networking -' '/etc/mysql/my.cnf.d/server.cnf' +' '/etc/my.cnf.d/server.cnf' sudo systemctl start mysqld sudo systemctl enable mysqld -printf '\n\n%s\n%s\n\n\n\n\n' "${root_pw}" "${root_pw}" | \ +printf '\n\n\n%s\n%s\n\n\n\n\n' "${root_pw}" "${root_pw}" | \ sudo mysql_secure_installation # set up stunnel @@ -66,7 +66,7 @@ tmp_file=$(mktemp) trap 'rm "${tmp_file}"' EXIT ssh master@buildmaster.archlinux32.org ' - cd /var/backup; + cd /data/backup; ls -t | grep -m1 '"'"'^database-.*\.xz$'"'"' | xargs pv ' > "${tmp_file}" -- cgit v1.2.3-70-g09d2