SVN备份
@echo 第一步
@echo------------------
@echo开始备份版本库XBRL_BF
@"C:\ProgramFiles\Subversion\bin\svnadmin.exe"hotcopyE:\svnhome\XBRL_BFD:\SVN_BACKUP\XBRL_BF
@echo------------------
@echo版本库XBRL_BF成功备份!
@echo------------------
@echo开始压缩版本库XBRL_BF
@"C:\ProgramFiles\WinRAR\WinRAR.exe"a-r-t-m2-agYYYYMMDDHHMM-dfD:\SVN_BACKUP\XBRL_BF_.rarD:\SVN_BACKUP\XBRL_BF-ibck
@echo------------------
@echo版本库XBRL_BF压缩成功!
@echo------------------
@echo复制到192.18.18.249备份
@copyD:\SVN_BACKUP\XBRL_BF*%date:~0,4%%date:~5,2%%date:~8,2%*\\192.168.18.249\temp
@echo------------------
@echo暂停60秒!
@ping127.0.0.1-n50-w1000>nul
@echo------------------
@echo第二步
@echo------------------
@echo开始备份版本库XBRL_BANK
@echo------------------
@"C:\ProgramFiles\Subversion\bin\svnadmin.exe"hotcopyE:\svnhome\XBRL_BANKD:\SVN_BACKUP\XBRL_BANK
@echo版本库XBRL_BF成功备份!
@echo------------------
@echo开始压缩版本库XBRL_BF
@"C:\ProgramFiles\WinRAR\WinRAR.exe"a-r-t-m2-agYYYYMMDDHHMM-dfD:\SVN_BACKUP\XBRL_BANK_.rarD:\SVN_BACKUP\XBRL_BANK-ibck
@echo------------------
@echo版本库XBRL_BF压缩成功!
@echo------------------
@echo复制到192.18.18.249备份
@copyD:\SVN_BACKUP\XBRL_BANK*%date:~0,4%%date:~5,2%%date:~8,2%*\\192.168.18.249\temp
@echo------------------
@echo第三步
@echo------------------
@echo开始备份版本库CSRC
@echo------------------
@"C:\ProgramFiles\Subversion\bin\svnadmin.exe"hotcopyE:\svnhome\CSRCD:\SVN_BACKUP\CSRC
@echo版本库CSRC成功备份!
@echo------------------
@echo开始压缩版本库CSRC
@"C:\ProgramFiles\WinRAR\WinRAR.exe"a-r-t-m2-agYYYYMMDDHHMM-dfD:\SVN_BACKUP\CSRC_.rarD:\SVN_BACKUP\CSRC-ibck
@echo------------------
@echo版本库CSRC压缩成功!
@echo------------------
@echo复制到192.18.18.249备份
@copyD:\SVN_BACKUP\CSRC*%date:~0,4%%date:~5,2%%date:~8,2%*\\192.168.18.249\temp
@echo------------------
@echo********%date:~0,4%%date:~5,2%%date:~8,2%%time%备份完成********
pause
相关推荐
SVN全称为Subversion,意为版本控制系统,SVN是一个很优秀的版本控制工具,用于团队开发中的多人文档操作的更新、处理和合并。SVN与CVS一样,是一个跨平台的软件,支持大多数常见的操作系统。