Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am struggling trying to load a incremental SVN backup made using svnadmin dump --incremental.

I have based my backup script on the ServerFault post: Incremental Backups of SVN Repository daily ? (OS = UNIX)

The first revision of each new backup is the last revision of the previous backup, is this correct?

E.g.:

  • Backup1: rev 0 to rev 100

  • Backup2: rev 100 to 154

  • etc

When I'm trying to load these backups into a new server (using svnadmin load), I am getting the error svnadmin: File already exists errors for the first revision in the second backup.

share|improve this question
up vote 0 down vote accepted

Your backup1 and backup2 dumps contain a revision that exists in both of them: rev 100. So when performing svnadmin dump with --incremental on a range of revisions make sure that these dumps don't overlap.

For example in your case the backup1 and backup2 should contain:

Backup1: rev 0 to 99

Backup2: rev 100 to 154

Backup3: rev 155 to 199

Here is a sample from the SVNBook:

$ svnadmin dump myrepos -r 0:1000 > dumpfile1
$ svnadmin dump myrepos -r 1001:2000 --incremental > dumpfile2
$ svnadmin dump myrepos -r 2001:3000 --incremental > dumpfile3
share|improve this answer
    
Hi Bahrep, thank you for the info! I don't have enough reputation to be able to comment on the original proposed solution, perhaps you can so others don't have the issue I had? – Donal M Apr 11 '13 at 17:57

While using svnload you can try in this way

svnadmin load D:\Repositories\RepoName < E:\Dump_1-100.dump

svnadmin load -r 101:154 D:\Repositories\RepoName < E:\Dump_100-154.dump

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.