diff options
author | Erich Eckner <git@eckner.net> | 2019-11-13 09:04:53 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-11-13 09:04:53 +0100 |
commit | 372ba57997645c91c7a97654c903db3a832d511c (patch) | |
tree | 1b407cc27e067f734683eda644b8ba3b52105224 | |
parent | 1c7788b7a9ada127d3be8d7f554ef711e04a3c1a (diff) | |
download | devops-372ba57997645c91c7a97654c903db3a832d511c.tar.xz |
replicate-db: /data/backup -> /data/backup/mysql
-rwxr-xr-x | replicate-db | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/replicate-db b/replicate-db index 76c737b..431b70f 100755 --- a/replicate-db +++ b/replicate-db @@ -39,7 +39,7 @@ tmp_file=$(mktemp) trap 'rm "${tmp_file}"' EXIT ssh master@10.100.10.1 ' - cd /data/backup; + cd /data/backup/mysql; ls -t | grep -m1 '"'"'^database-.*\.xz$'"'"' | xargs pv ' > "${tmp_file}" |