svnsync
Saturday, December 29th, 2007Today 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:
- In the destRepo:
$ echo "#!/bin/sh" > hooks/pre-revprop-change
$ chmod 755 hooks/pre-revprop-change - svnsync init {DEST_URL} {SRC_URL}
- 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…..
