Saturday 29 May 2010

Backup and Restore a Subversion Repository

Sometimes, you just have to do serious maintenance to a server, like install a new instance of your operating system from scratch with a new partition layout. If this server happens to be your Subversion server, you need to backup your repository and restore it once you're done with the maintenance. Or maybe you just want to move your repository from one server to another. Here's how to do it. The commands below need to be performed on the SVN server by a user who has write access to the repository (in theory any SVN admnistrator).

First, here's how back up the repository to a compressed file:

$ svnadmin dump /path/to/repo | gzip > backup.gz

And how to restore it:

$ gunzip -c backup.gz | svnadmin load /path/to/repo

Those commands are meant for UNIX or Linux so you will have to adapt them if you are running Windows. It shouldn't be too difficult to do so, especially if you are using Cygwin.

5 comments:

Anonymous said...

stay up for your next updates. 카지노

Anonymous said...

i’ve been surfing olent blog. I can preserve touring this blog very frequently. 토토

Anonymous said...

notable submit i have to say and thank you for the information. Schooling is absolutely a sticky situation. However, continues to be most of the leading topics of our time. I appreciate your publish and look ahead to greater. i am for the first time right here. I discovered this board and i in finding it simply useful & it helped me out a lot. I'm hoping to present something again and assist others including you helped me. I hope that it doesnt disappoint me as lots as this one. I mean, i comprehend it was my choice to study, but i definitely notion you have got some thing interesting to mention. All i hear is a gaggle of whining approximately something that you may restoration if you werent too busy looking for attention. I've read your article; it is very informative and beneficial for me. I appreciate the treasured information you offer to your articles. Thanks for posting it. Your content material is nothing brief of superb in many ways. I suppose this is engaging and eye-starting material. Thank you a lot for caring about your content and your readers. This is a fantastic article, given so much information in it, these sort of articles keeps the customers interest in the internet site, and keep on sharing extra ... Right good fortune . Extremely good info! I latterly got here throughout your weblog and were studying along. I concept i might go away my first remark. I don’t realize what to mention besides that i've 토토

Anonymous said...

Thank you, I've recently been searching for info about thier content that also clear their motive, and that is also happening with this post which I am reading here. 토토위젯 검증업체

playa de virginia manual de divorcio sin oposición said...

Managing your Subversion repository has never been easier! With this step-by-step guide, you can easily backup and restore your Subversion repository. Maintain the security and dependability of your version control system. Thank you for sharing your knowledge! Keep up the good job! Continue to spread the word. Please take a peek at my website.