欢迎来到天天文库
浏览记录
ID:22376746
大小:79.50 KB
页数:11页
时间:2018-10-28
《ntbackup结合solaris shell script执行自动备份》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、NTBackup结合Solarisshellscript执行自动备份 前提: 1,icrosoftRSMeject/PFon_lib/etc/chk_inSolaris#IllusionChen###############################################ent:Accordingtothescript,W2KServer#if[${Today}-eq0-o${Today}-eq6];then# exit# elseif[${Today}-eq5];then rsh${W2K_SRVR}
2、9;AT23:10/interactiveD:icillibfullbackup.bat' else rsh${W2K_SRVR}'AT23:10/interactiveD:icillibdailybackup.bat'fi#fi12345下一页——感谢阅读这篇文章,.., chk_ba/lib/smb.conf
3、grep-v';'
4、grep-v'#'
5、a`hostname` echoRSH:FailedtocheckNTBackupprocess )>;
6、>;${LOG_PATH}/chk_log_result cat${LOG_PATH}/chk_log_result
7、/usr/ucb/mail-sNTBackup:ConfigurationError${MAILLIST}fiifgrepnotrecognized${LOG_PATH}/process_list>;/dev/null;then (echoServer:${AILLIST}fiifgrepNTBACKUP.EXE${LOG_PATH}/process_list>;/dev/null;then
8、 (echoServer:${AILLIST}fi}get_log()#Mayporttheoutputaboutsmbclientto${LOG_PATH}get_log_result.{cat<<-END
9、/usr/local/samba/bin/smbclient''${AIN}-E prompt cdDocumentsandSettings cd${BACKUP_OP} cdLocalSettings cdApplicationData cdMicrosoft cd
10、backup*.log quit END上一页12345下一页——感谢阅读这篇文章,..,}################################################# SeveralFunctionsForFunctionchk_log# Start################################################no_log(){date>;${LOG_PATH}/chk_log_resultecho>;>;${LOG_PATH}/chk_log_resul
11、tifgrepfailed${LOG_PATH}/get_log_result>;/dev/null;then cat${LOG_PATH}/get_log_result
12、/usr/ucb/mail-sNTBackup:FailedtogetNTBackuplogfrom${AILLIST} exit1 else ifgrepERRDOS${LOG_PATH}/get_log_result>;/dev/null;then cat${LOG_PATH}/get_log_result
13、/usr/u
14、cb/mail-sNTBackup:FailedtogetNTBackuplogfrom${AILLIST} exit1 else echoNobackuplogNTserver,pleasecontactICILsupport.n>;>;${LOG_PATH}/chk_log_result cat${LOG_PATH}/chk_log_result
15、/usr/ucb/mail-sNTBackup:Jobfailedin${AILLIST} fifi}small_log(){date>;
16、${LOG_PATH}/chk_log_resultecho>;>;${LOG_PATH}/chk_log_resultifgrepoperatione
此文档下载收益归作者所有