Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/replicate-db
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-10-17 22:55:12 +0200
committerErich Eckner <git@eckner.net>2019-10-17 22:55:12 +0200
commitc665b60bccdda32faf8c39f9646c0bd7dc31222a (patch)
tree6048df4d8d59b5a1b5daf1284dccf401923b3709 /replicate-db
parentb07bea3341c7c912958dbe243841f95810afb977 (diff)
replicate-db: fix config path, setup walk-through, backup path
Diffstat (limited to 'replicate-db')
-rwxr-xr-xreplicate-db6
1 files 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}"