tags:

views:

148

answers:

2

How do I backup my Subversion Repository nightly? I have a network drive I'd like to dump the repository to on a nightly basis.

+6  A: 

Check out the Repository Maintenance chapter in The Book on how to pull a dump out of the repository. Then use a timed service (at or cron for example, or the very nice task scheduler in Windows OS's, depends on your server's system) to execute the dump nightly. Done.

Pekka
depending on the size of the repository a dump is not the best method to do this, as creating a dump and restoring a dump will take some time. You should use svnadmin hotcopy
Peter Parker
+1  A: 

The SVN book has a section on Repository Backup.

The svnadmin hotcopy command allows you to safely backup a live repository.

The svnsync command is another possibility.

Craig McQueen