Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using VisualSVN to host a repository on a server that is backed up nightly using Windows' built in Backup and Restore functionality. Is this sufficient or do I need to create a separate task to specifically call svnadmin hotcopy every night?

Any links to documentation would be greatly appreciated.

share|improve this question
up vote 3 down vote accepted

Using windows backup (or any backup solution that uses disk snapshot, really) is just fine for backing up a SVN repository.

Be aware, however, that no matter what you use for backups, if you need to restore the repository, it is possible that all your SVN client will have to fix their local working copy if they have updated to a more recent version of the repository than the one that is available in the backups. This can result in lost work (or at least the need to manually merge the new code into the "old" repository).

share|improve this answer
Thanks. What if SVN is in the middle of a transaction, i.e. someone is committing, while the backup is running? – Larry Jun 5 '13 at 18:20
It won't have any effect: SVN commit are atomic in themselves so a partial commit will just be rolled back. And since you're using snapshots, the disk state is guaranteed to be consistent (you won't have a file in the backup which assumes state N and another file assuming state N+1) – Stephane Jun 6 '13 at 6:45
Why the negative vote? At least give an explanation! – Stephane Jun 6 '13 at 12:15
Thanks for the clarification. – Larry Jun 6 '13 at 13:29

Your Answer


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.