Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm looking to make a backup of my subversion repositories, such that if the server crashes I can easily restore them else where. My thought is to use the svnadmin dump command to dump the SVN to backup device.

Would you use this? And if so, would you use --incremental and/or --deltas in the command?

share|improve this question
add comment

3 Answers 3

up vote 5 down vote accepted

svnadmin dump is the right way to go.

Usage of --incremental and --deltas is depending on the size of your repositories and the power of the server: If you have the space, go for full backups each time, it´s the easiest to keep and play back. If this runs too slow, go for --incremental. And if this backup is too big, go for --deltas.

Important: Whatever you do for backup, you must play it back to a test server to see if and how it works.

share|improve this answer
1  
i have scripts that do a svn dump once a week and svn dump --incremental once a day. I then compress and burn the backups to DVD. The incrementals are deleted at the end of the week when a new full backup is done. –  Andrew Keith Dec 23 '09 at 8:04
    
What's your reasoning for not just keeping the last incremental? –  Darryl Hein Dec 23 '09 at 8:51
add comment

You could do a git svn clone of the repo, which will provide an easy way to create a full backup with history that you can very easily update with git svn rebase As an added bonus, the backup repo will be smaller than original.

share|improve this answer
add comment

The easiest method of making a backup is to use svnsync. This replays your commits to a backup repository, so if the master one crashes or is otherwise inaccessible, you can switch to the backup. You can also force the sync to occur in a post-commit hook so it is always up to date.

The only caveat is that you must copy the hooks and similar configuration (eg users, passwords) to the backup repository when you initially create it, and when you make changes. Svnsync only incrementally copies revisions after initial creation.

share|improve this answer
add comment

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.