分享到:更多 ------解决方案-------------------- win 下的嘛? 自己写个bat 文件.来处理. 备份 压缩 复制文件到FTP目录 ------解决方案-------------------- ::…………………………………………………………………………………………………………………………………………………………………………………………………………………………… :: 版本:BACKDATESYSTEM V1.0 :: 功能:用于系统平台备份程序及数据 :: 特点:按当前日期生成文件名 :: pathback、pathSource、pathdatabase、filename、password、letter(接下行) :: (接上行)baklogPath、bakdatabase、bakdatatime、baktimeStart分别为(接下行) :: (接上行)备份路径、源路径、数据库路径、备份文件前缀名、密码 (接下行) :: (接上行)WinRAR安装盘符、日志路径、数据库名、SQL自动备份时间、文档时间 :: bak_ftpServer、bak_ftpUserName、bak_ftpUserPass为FTP地址、用户及密码 ::…………………………………………………………………………………………………………………………………………………………………………………………………………………………… set pathback=F:\WebSiteBack\ set PathSource=E:\WebSite\GjWebSite :: set pathdatabase=E:\Project\WebSite_AspNet\AspNet_Test008\DB_2005 set filename=Andy_WebSite_ set password=wuyi set letter=d: set baklogPath=F:\WebSiteBack\Log\ set baktimeStart=%time:~0,2%%time:~3,2%%time:~6,2%%time:~9,2% set bakdate=%date:~0,4%%date:~5,2%%date:~8,2% :: set bakdatabase=dg_gongjiao :: set bakdatatime=1126
:: ftp 相关参数
:: set bak_ftpServer=200.0.0.0 :: set bak_ftpUserName=test :: set bak_ftpUserPass=test123456
:: del %pathback%%filename%*.rar
%letter%\Progra~1\WinRAR\WinRAR.exe a -inul -p%password% %pathback%%filename%%bakdate%%baktimeStart% %pathSource%