Question

I am running a SVN server on my Windows Server and want to schedule an automated backup procedure. I will always be the only one working on the repository. Should I bother with hotcopy or can I use a simple Windows backup application to backup the repositories? What about xcopy or robocopy?

Was it helpful?

Solution

I find simply copy / pasting (XCopy) the repositories is the easiest solution. You may want to consider dumping the repository to a single file before you copy it as I find copying a single large file is much quicker than copying a bunch of smaller files. This probably isn't an issue if your repository is small, but something to consider:

svnadmin dump /path/to/repository > repository-name.dmp

OTHER TIPS

Kind of duplicate SVN backups..is hotcopy enough or should I worry about full and incremental dumps? question.

Do not forget to think about:

  • the frequency of your backups (what happens if it crashes between two backups ?)
  • the cleaning process (how many backups do you want to keep over time ?)
  • the free space management (what kind of disk space each backup takes ?)
  • the restore procedure: TEST it ;) A backup which has never been tested is not a "real" backup ;)

As long as you are sure that no one is accessing (especially committing to) the repository while it is being backed-up, there is no need to use hotcopy. You can simply copy/backup the repository with any tool you want.

You would be OK as the only user, since you know you would never be committing a change during the backup, (right? :) Still, there doesn't seem to be any "bother" in using hotcopy or dump. They're just as easy to use.

Plus you get two bonuses if you use it. One is if your situation changes (you get more people using your repository) you don't have to remember and go back and change the way you do it. And two is, if there is ever a problem with restoring, you don't really want to post a question that starts with, "I made my backup by just making copies of the repo..."

I use Mozy Home to back up all of my personal development files (Subversion, Visual Studio projects, etc.) It's simple, doesn't take up too many resources, is easily configurable, and best of all: free.

I thought about writing my own backup solution using xcopy or something similar, but why reinvent the wheel?

if the SVN lives in your computer you can use a simple file copy, the safest way is to use a dump backup.

remember that you have to keep the backups out of your computer, there is a free svn backup tool here

It does both kind of backups, hotcopy and dump and send it to your email or FTP

Here a GUI Windows tool for make a dump of local and remote subversion repositories:

SVN Backup Tool

The tool description says:

This simply tool allow to make a dump backup of a local and remote subversion repository. The software work in the same way of the "svnadmin" but is not a GUI frontend over it. Instead use directly the subversion libraries for allow to create dump in standalone mode without any other additional tool.

The problem in your case is this tool need to manually started for make the backup and, currently, there is no automatic schedule of backup.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top