svn全备份,用svnadmin hotcopy命令,总提示系统找不到指定路径,怎么办?
simplebackup.bat,如下@echo正在备份版本库%1......@%SVN_HOME%\bin\svnadminhotcopy%1%BACKUP_DIREC...
simplebackup.bat,如下
@echo 正在备份版本库%1......
@%SVN_HOME%\bin\svnadmin hotcopy %1 %BACKUP_DIRECTORY%\%2
@echo 版本库%1成功备份到了%2!
backup.bat如下:
echo off
set SVN_HOME="c:program files\visualSVN Server\"
set SVN_ROOT=E:\Repositories
set BACKUP_SVN_ROOT=F:\svnbak
set BACKUP_DIRECTORY=%BACKUP_SVN_ROOT%\%date:~0,10%
if exist %BACKUP_DIRECTORY% goto checkBack
echo %BACKUP_DIRECTORY%>>%SVN_ROOT%/backup.log
mkdir %BACKUP_DIRECTORY%
rem 验证目录是否为版本库,如果是则取出名称备份
for /r %SVN_ROOT% %%I in (.) do @if exist "%%I\conf\svnserve.conf" %SVN_ROOT%\simpleBackup.bat "%%~fI" %%~nI
goto end
:checkBack
echo %BACKUP_DIRECTORY%
goto end
:end
执行simplebackup.bat时提示系统找不到指定路径,这是为什么啊! 展开
@echo 正在备份版本库%1......
@%SVN_HOME%\bin\svnadmin hotcopy %1 %BACKUP_DIRECTORY%\%2
@echo 版本库%1成功备份到了%2!
backup.bat如下:
echo off
set SVN_HOME="c:program files\visualSVN Server\"
set SVN_ROOT=E:\Repositories
set BACKUP_SVN_ROOT=F:\svnbak
set BACKUP_DIRECTORY=%BACKUP_SVN_ROOT%\%date:~0,10%
if exist %BACKUP_DIRECTORY% goto checkBack
echo %BACKUP_DIRECTORY%>>%SVN_ROOT%/backup.log
mkdir %BACKUP_DIRECTORY%
rem 验证目录是否为版本库,如果是则取出名称备份
for /r %SVN_ROOT% %%I in (.) do @if exist "%%I\conf\svnserve.conf" %SVN_ROOT%\simpleBackup.bat "%%~fI" %%~nI
goto end
:checkBack
echo %BACKUP_DIRECTORY%
goto end
:end
执行simplebackup.bat时提示系统找不到指定路径,这是为什么啊! 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询