我无法在 Windows 8 上进行 svn 服务器备份。我已经尝试过 StackOverflow 上提供的许多命令,但到目前为止没有一个有效。谁能帮我解决这个问题?
我的工作副本位于 C:\working\sample
中,存储库路径为 E:\Repositories
。
我在 svn 命令提示符下使用以下命令:
svnadmin hotcopy E:\Repositories E:\repo.back
我收到以下错误
svnadmin: E720002: Can't open file 'E:\repositories\format': The system cannot f
ind the file specified.
通过给出上面的命令,我观察到 repo.back 文件是在 e 驱动器中创建的,大小为 0kb
此外,请告诉我应该在哪种命令提示符模式下使用此命令
最佳答案
My working copy is located in C:\working\sample and the repository path is E:\Repositories.
E:\Repositories\
是存储库的根位置,而不是存储库。 svnadmin hotcopy
命令备份单个存储库,因此您必须像这样运行命令 svnadmin hotcopy E:\Repositories\<reponame> E:\RepoBackup\<backupname>
.
有various ways to backup Subversion repos , 请确保选择最适合您要求的那个。我建议你阅读我的 other answer on the this topic at ServerFault .
PS 我想这个问题在 StackOverflow 上是题外话,必须在 ServerFault 上提问。
关于SVN服务器备份,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25617013/