cd $HOME tput cup 5 0 echo "正在卸载数据库,请稍候...\c" dbexport single -o . >/dev/null 2>/dev/null if [ $? -eq 0 ] then echo "完成!" else echo "失败!!\007\007" exit 1 fi
#tar cvf /tmp/bankdata com data etc frm single.exp
tput cup 5 15 echo "正在打包备份数据,请稍候...\c" tar cvf /tmp/bankdata single.exp >/dev/null 2>/dev/null if [ $? -eq 0 ] then echo "完成!" else echo "失败!!\007\007" exit 1 fi
tput cup 5 32 chmod 777 /tmp/bankdata echo "正在压缩备份数据,请稍候...\c" compress -H /tmp/bankdata if [ $? -eq 0 ] then echo "完成!\c" sleep 2 else echo "失败!!\007\007" exit 1 fi chmod 777 /tmp/bankdata.Z