Sha256: 55681badfb848d7fe3f66f398dd99eb5438b72ad6dc72e07e6ab06d0a8683291

Contents?: true

Size: 1000 Bytes

Versions: 17

Compression:

Stored size: 1000 Bytes

Contents

#!/bin/bash
USER="root"
PASSWORD="Password001"
HOST="127.0.0.1"
PORT="3306"
DBS=( cvty06feb cvtyc06feb edifiles06feb enroll06feb healthspan06feb hixenroll06feb starmount06feb summacare06feb tem06feb )

echo "********************************************************************************"
echo "Starting restore at:" `date`
START=`date +%s`

for DB in ${DBS[@]}; do
	echo "--------------------------------------------------------------------------------"
	echo "Starting to restore ${DB} at:" `date`
	DBSTART=`date +%s`
	
	mysql -u${USER} -p${PASSWORD} -h ${HOST} -P${PORT} < ${DB}.sql
	
	DBEND=`date +%s`
	echo "Finished restoring ${DB} at:" `date`
	DIFF=`expr $DBEND - $DBSTART`
	echo "Elapsed time:" ${DIFF}s
done

echo "--------------------------------------------------------------------------------"
END=`date +%s`
echo "Finished restore at:" `date`
DIFF=`expr $END - $START`
echo "Total time:" ${DIFF}s
echo "********************************************************************************"

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
insxsync-1.1.0 test/db_restore.sh
insxsync-1.0.1 test/db_restore.sh
insxsync-1.0.0 test/db_restore.sh
insxsync-0.0.14 test/db_restore.sh
insxsync-0.0.13 test/db_restore.sh
insxsync-0.0.12 test/db_restore.sh
insxsync-0.0.11 test/db_restore.sh
insxsync-0.0.10 test/db_restore.sh
insxsync-0.0.9 test/db_restore.sh
insxsync-0.0.8 test/db_restore.sh
insxsync-0.0.7 test/db_restore.sh
insxsync-0.0.6 test/db_restore.sh
insxsync-0.0.5 test/db_restore.sh
insxsync-0.0.4 test/db_restore.sh
insxsync-0.0.3 test/db_restore.sh
insxsync-0.0.2 test/db_restore.sh
insxsync-0.0.1 test/db_restore.sh