index : devops | |
Archlinux32 devs' convenience-scripts | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2019-10-17 22:55:12 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-10-17 22:55:12 +0200 |
commit | c665b60bccdda32faf8c39f9646c0bd7dc31222a (patch) | |
tree | 6048df4d8d59b5a1b5daf1284dccf401923b3709 /replicate-db | |
parent | b07bea3341c7c912958dbe243841f95810afb977 (diff) |
-rwxr-xr-x | replicate-db | 6 |
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}" |