Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

This question already has an answer here:

I've got installed a VisualSVN in a Windows Server 2003 (it has just a drive C: with 10GB)

I'm planning to backup a VisualSVN server in this way:

  • Make a disk image with Ghost or some other software of my Windows Server 2003.
  • Every night make a copy of the whole folder: 'C:\Repositories'
  • If I upgrade VisualSVN version, I should make again other disk image.

In case of disaster recovery, in order to restore server, I would only need to:

  • Restore Ghost image in a new server
  • Paste folder 'C:\Repositories' from backup to new server

My question are:

  • Would it work?
  • Is 'C:\Repositories' the only folder that I have to backup? Do I have to backup any other thing?

Thanks

share|improve this question
1  
serverfault.com/a/407493/107134 –  bahrep Jul 13 '12 at 14:42
add comment

marked as duplicate by squillman, voretaq7 Nov 1 '13 at 15:56

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

up vote 4 down vote accepted

Yes, it will work the way you describe. You really only need to back up your repositories folder, though. Re-installing VisualSVN is easy, even on another server, and you can just copy the repositories folder on top after you do that.

It might be simplest to use NTBACKUP for this on Win2003, with nightly incrementals or differentials. Or use whatver other backup software you already use at your company, or the cloud backup service of your choice. There's nothing special about SVN repositories, they're just files.

There is a caveat, in that if you back up an SVN repository that is being committed to during the backup, you can in rare circumstances get a corrupt repository. The repository can be easily repaired with svnadmin recover command though.

Using NTBACKUP or some other backup tool that is Volume ShadowCopy aware will "snapshot" the whole drive ensuring a clean backup

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.