Windows Backup for SVN Repositories
Solution 1
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
Solution 2
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 ;)
Solution 3
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.
Solution 4
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..."
Veggivore
Updated on June 04, 2022Comments
-
Veggivore almost 2 years
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?
-
Marc Gravell over 15 yearsFor an automated process, that condition isn't very robust; I'd use hotcopy or dump myself.
-
M4N over 15 yearsMarc, that's certainly true, I'm using hotcopy too. But Dscoduc explicitly stated that he well always be the only person to work on the repository - so it should not be a problem.
-
Francisco Alvarado almost 11 yearsCurrently your link gives a HTTP 404 (Not Found) error. Going to the root of that site gives a 403 (Forbidden) error.