参考 http://www.thecrumb.com/2006/08/17/subversion-hotcopy-backup-scripts/
@ECHO OFF
REM will hotcopy your repo to My Documents
REM this will delete the existing dir and create it again
REM you could use this script with a scheduled task for backup
SET REPODIR=E:\Repositories\Android1
SET REPOBACKUP="C:\2
ECHO ==================================
ECHO PROCESSING BACKUP ...
ECHO This may take some time depending
ECHO on the size of your repository!
ECHO ==================================
IF EXISTS RMDIR %REPOBACKUP% /S/Q
svnadmin hotcopy %REPODIR% %REPOBACKUP%
ECHO BACKUP COMPLETED!
基本上,我已经创建了一个存储库,并且我使用svnadmin hotcopy
了它似乎可以工作。任何人都可以简单地解释一下如何在热拷贝之后首先删除副本并创建回购的最新副本,这显然会改变上次更新时间。
我看不出这个脚本哪里出错了,我所有的路径都是正确的。我正在使用 Windows。