#!/bin/bash #ip=x.x.x.x #pass='x.x.x.x' pass='x.x.x.x' time=`date +%Y%m%d-%H%M` db_path=/root/code/xizang_PAD_project/PHP_business_server/tfcms/upgrade/db/ db_name=tf_syberos_cms db_bak=/usr/local/src/backup/$db_name-$time.sql #Determine the results result() { if [ $? != 0 ];then echo -e "