简体   繁体   English

将Linux服务器上的SVN存储库备份到Windows客户端

[英]Backup of SVN repository, located on Linux server, to Windows Client

I try to create a backup of my SVN repository, located on Linux server, from Windows command-line Subversion Client: 我尝试从Windows命令行Subversion客户端创建位于Linux服务器上的SVN存储库的备份:

C:\\project>svnadmin hotcopy svn://"URL_of_my_SVN_repository"/ C:/BACKUP C:\\ project> svnadmin hotcopy svn://“ URL_of_my_SVN_repository” / C:/ BACKUP

and receive following error: svnadmin: E205000: 'svn://"URL_of_my_SVN_repository"/' is a URL when it should be a local path 并收到以下错误:svnadmin:E205000:'svn://“ URL_of_my_SVN_repository” /'是一个URL,当它应该是本地路径时

How I can solve it? 我该如何解决? I need to initiate a backup my SVN repository from Windows PC (due to our network policy I have access to the Linux server port 3690 (SVN) only). 我需要从Windows PC启动我的SVN存储库的备份(由于我们的网络策略,我只能访问Linux服务器端口3690(SVN))。

According to the documentation , you can't run svnadmin from a remote machine: 根据文档 ,您不能从远程计算机上运行svnadmin

Since svnadmin works via direct repository access (and thus can only be used on the machine that holds the repository), it refers to the repository with a path, not a URL. 由于svnadmin通过直接的存储库访问来工作(因此只能在保存该存储库的机器上使用),因此它使用路径而不是URL来引用该存储库。

The standard approach to backing up to a remote location is to combine multiple tools: 备份到远程位置的标准方法是组合多个工具:

  1. Run svnadmin on the machine which serves svn. 在提供svn的计算机上运行svnadmin
  2. Use a tool like rsync to copy that repo dump from the svn server to the machine which will be backed up. 使用rsync类的工具将该回购转储从svn服务器复制到将要备份的计算机上。

If your network policy allows you to run an svn server on a machine, but not to schedule svnadmin backup jobs on that machine, then I think you need to re-consider your network policy. 如果您的网络策略允许您在一台计算机上运行svn服务器,但不允许在该计算机上安排svnadmin备份作业,那么我认为您需要重新考虑您的网络策略。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM