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

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

1 Answer 1

up vote 2 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

 
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.