Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows Backup for SVN Repositories

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?

like image 221
Dscoduc Avatar asked Jan 07 '09 07:01

Dscoduc


2 Answers

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
like image 103
Ryan Smith Avatar answered Sep 22 '22 04:09

Ryan Smith


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 ;)
like image 42
VonC Avatar answered Sep 24 '22 04:09

VonC