mirror of
https://github.com/namibia/demo-sync.git
synced 2024-11-10 14:50:55 +00:00
Added a little notice that the databases are being synced.
This commit is contained in:
parent
fba123002f
commit
7a5bd86dea
4
sync.sh
4
sync.sh
@ -416,6 +416,8 @@ function syncDBs (){
|
|||||||
|
|
||||||
### sync database ###
|
### sync database ###
|
||||||
function syncDB (){
|
function syncDB (){
|
||||||
|
# give the user log data
|
||||||
|
echoTweak "Syncing databases of [$2] with [$6]..."
|
||||||
# local source_server="$1"
|
# local source_server="$1"
|
||||||
# local source_db="$2"
|
# local source_db="$2"
|
||||||
# local source_user="$3"
|
# local source_user="$3"
|
||||||
@ -428,6 +430,8 @@ function syncDB (){
|
|||||||
mysqldump --opt -q --host="$1" --user="$3" --password="$4" "$2" | \
|
mysqldump --opt -q --host="$1" --user="$3" --password="$4" "$2" | \
|
||||||
mysql --host="$5" --user="$7" --password="$8" -C "$6"
|
mysql --host="$5" --user="$7" --password="$8" -C "$6"
|
||||||
# we may want to look at passing the password more securly (TODO)
|
# we may want to look at passing the password more securly (TODO)
|
||||||
|
# done :)
|
||||||
|
echo "done"
|
||||||
}
|
}
|
||||||
|
|
||||||
### sync folders ###
|
### sync folders ###
|
||||||
|
Loading…
Reference in New Issue
Block a user