views:

615

answers:

3

Right now I am using Windows XP. If i just copy the whole repository folder in visual SVN, once the server is down, how can i restore it via the backuped repository folder? another better solution to backup and restore in visual svn ?

by the way, any method for backup and restore in visual source control?

+2  A: 
svnadmin dump /path/to/repository | bzip2 -9c > svn-backup.bz2

The compression step is optional, of course.

Restore the above file with:

bzip2 -dc svn-backup.bz2 | svnadmin load /path/to/repository
Warren Young
A: 

You should use svnadmin hotcopy to create a backup of your repository.

wierob
I tried, but system prompt "can not find file ...../format"
MemoryLeak
+1  A: 

You can just copy the entire directory in and out. Files is files, there's nothing magic about them.

If you want to do something more complicated, like edit the repository contents in some way before restoring, then you need dump and load.

Jay