windows下svn简单多盘备份
1、利用svnadmin dump导出
2、利用winrar压缩导出内容,所以前提系统要安装winrar
具体如下:
@echo off
d:
cd D:\svnback
Set nowdate=%date:~,10%
Md "%nowdate:/=-%"
cd "%nowdate:/=-%"
svnadmin dump D:\SVNRepositories\assets > assets.dump
svnadmin dump D:\SVNRepositories\essential > essential.dump
svnadmin dump D:\SVNRepositories\HCAOM > HCAOM.dump
svnadmin dump D:\SVNRepositories\OA > OA.dump
svnadmin dump D:\SVNRepositories\portal > portal.dump
svnadmin dump D:\SVNRepositories\plugins > plugins.dump
cd ../
"C:\Program Files\WinRAR\rar.exe" a D:\svnback\"%nowdate:/=-%".rar D:\svnback\"%nowdate:/=-%"
rd /s/q D:\svnback\"%nowdate:/=-%"
copy "%nowdate:/=-%".rar E:\svnback\"%nowdate:/=-%".rar