Sha256: 91a30150a32eb39b9a8be1ad2c853ae273914e4ea030e34f31313cb0826ffe8c

Contents?: true

Size: 1.03 KB

Versions: 17

Compression:

Stored size: 1.03 KB

Contents

#!/bin/bash
USER="root"
PASSWORD="Password001"
HOST="127.0.0.1"
PORT="3306"
DBS=( aetna23feb cchpsc23feb cvtyc23feb cvty23feb edifiles23feb emp23feb enroll23feb healthspan23feb hixenroll23feb  masterplans23feb starmount23feb summacare23feb tem23feb )

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 features/support/db_restore.sh
insxsync-1.0.1 features/support/db_restore.sh
insxsync-1.0.0 features/support/db_restore.sh
insxsync-0.0.14 features/support/db_restore.sh
insxsync-0.0.13 features/support/db_restore.sh
insxsync-0.0.12 features/support/db_restore.sh
insxsync-0.0.11 features/support/db_restore.sh
insxsync-0.0.10 features/support/db_restore.sh
insxsync-0.0.9 features/support/db_restore.sh
insxsync-0.0.8 features/support/db_restore.sh
insxsync-0.0.7 features/support/db_restore.sh
insxsync-0.0.6 features/support/db_restore.sh
insxsync-0.0.5 features/support/db_restore.sh
insxsync-0.0.4 features/support/db_restore.sh
insxsync-0.0.3 features/support/db_restore.sh
insxsync-0.0.2 features/support/db_restore.sh
insxsync-0.0.1 features/support/db_restore.sh