简体   繁体   中英

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:

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

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).

According to the documentation , you can't run svnadmin from a remote machine:

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.

The standard approach to backing up to a remote location is to combine multiple tools:

  1. Run svnadmin on the machine which serves svn.
  2. Use a tool like rsync to copy that repo dump from the svn server to the machine which will be backed up.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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