svnsync

Today you can find a lot of different descriptions on the internet how you can sync two svn servers. But most of them are too complex for my simple situation. Now I found a perfect solution on Paul’s blog.

Here is a short version:

  1. In the destRepo:
    $ echo "#!/bin/sh" > hooks/pre-revprop-change
    $ chmod 755 hooks/pre-revprop-change
  2. svnsync init {DEST_URL} {SRC_URL}
  3. svnsync sync {DEST_URL}

After I aborted the process the first time I get an error
Failed to get lock on destination repos, currently held by.
This problem is easy to fix, just release the lock on revision 0 with
svn propdel svn:sync-lock --revprop -r 0 {DEST_URL}

That’s it…..

Tags: , ,

2 Responses to “svnsync”

  1. martin Says:

    Nice, I’ll definitively use this…

  2. Linux Swords » svnsync Says:

    […] Alex has written a nice post about syncing 2 svn-repositories here. […]

Leave a Reply

You must be logged in to post a comment.