开发者

backup svn to another svn repository

I currently use one svn repository on one server, but to make it more failsafe. I have another svn repository set up on anot开发者_运维百科her server, how can I mirror the svn on my secondary server with the information in my svn on my primary server?


You can use svnsync from SVN itself which is able to replicate to an other server, but be aware of that the replicated repository is read only. The best thing is to replicate every commit via post-commit-hook script onto the backup server.


did you considered storing the second copy in a dump? in my opinion is the best way of making a save backup of your svn repository.

under windowsyou can use the following command:

svnadmin dump YourRepositoryPath > YourBackupName.svn

under linux you can use the following command:

svnadmin dump YourRepositoryPath | gzip > YourBackupName.svn.gz

maybe does not directly answer your question but maybe an idea for a different solution of the problem.

Best, Ste


If you're open to commercial solutions Subversion Clustering would keep it in sync and allow read-write at all nodes in the cluster. This also works over a WAN.


You might consider using svk, although it not actively developed any more.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜