more oraservicechk.sh
#!/bin/bash
check253=`nc -vv -z 10.0.0.253 1522 | awk '{print $7}'`
if [ "$check253" = "succeeded!" ] ;then
echo "Local oracle service in Normal!!!"
else
echo "Local oracle Service Not Startup!!"
more rsyncmysql_to246.sh
#!/bin/bash
/usr/bin/rsync -zrptgoD --progress --password-file=/etc/pass.pass /home/mysqlDBBak/ optback@10.0.0.246::mysqlDBBack
sleep 1s
echo "mysql backup to 10.0.0.246 complete"