From 7a5bd86dea7c382b114f5959ae2d436f60aa9924 Mon Sep 17 00:00:00 2001 From: Llewellyn van der Merwe Date: Sat, 7 Mar 2020 18:35:50 +0200 Subject: [PATCH] Added a little notice that the databases are being synced. --- sync.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sync.sh b/sync.sh index d871542..a82f004 100755 --- a/sync.sh +++ b/sync.sh @@ -416,6 +416,8 @@ function syncDBs (){ ### sync database ### function syncDB (){ + # give the user log data + echoTweak "Syncing databases of [$2] with [$6]..." # local source_server="$1" # local source_db="$2" # local source_user="$3" @@ -428,6 +430,8 @@ function syncDB (){ mysqldump --opt -q --host="$1" --user="$3" --password="$4" "$2" | \ mysql --host="$5" --user="$7" --password="$8" -C "$6" # we may want to look at passing the password more securly (TODO) + # done :) + echo "done" } ### sync folders ###