0

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

user1150517
  • 3
  • 1
  • 2

2 Answers2

4

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.

Eli Acherkan
  • 6,401
  • 2
  • 27
  • 34
  • Thank you! What solution you can recommend me for the backup with URL access? – user1150517 Jan 15 '12 at 15:59
  • Sorry, I'm not familiar enough with SVN administration to help you there, but let's see what the collective mind of StackOverflow has to offer... – Eli Acherkan Jan 15 '12 at 16:05
  • One of the answers [here](http://stackoverflow.com/questions/33055/what-is-the-best-way-to-backup-subversion-repositories) suggests [svnsync](http://svnbook.red-bean.com/en/1.7/svn.ref.svnsync.html). – Eli Acherkan Jan 15 '12 at 16:10
  • An other way is to use _svnrdump_ . This very much works as _svnadmin dump_ but does support operations over the net. – Tobias Kremer Oct 10 '13 at 10:28
1

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.

David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490