svn备份,删除和恢复最新的回购

时间:2013-11-08 12:40:57

标签: svn backup

REF 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似乎可以工作。任何人都可以轻松地解释如何在hotcopy之后首先删除副本并创建repo的最新副本,这将显着改变上次更新的时间。

我无法看到我在这个脚本出错的地方,我的所有路径都是正确的。我正在使用Windows。

0 个答案:

没有答案