1
0
mirror of https://github.com/namibia/demo-sync.git synced 2024-11-24 20:27:33 +00:00

Added a little notice that the databases are being synced.

This commit is contained in:
Llewellyn van der Merwe 2020-03-07 18:35:50 +02:00
parent fba123002f
commit 7a5bd86dea
No known key found for this signature in database
GPG Key ID: 8A8F406BA7238C4E

View File

@ -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 ###