tisdag 12 december 2006

Repository backup

I switched from cvs to subversion a while ago. Even if using a repository is a partial form of backup, the repository itself must be backed up, or all revision information and logs are lost.

Here are some alternatives how to do it:

for both fsfs and Berkeley databases:
svn-hot-backup
This should work even if someone is using the repository.

only for fsfs database:
svn-fast-backup
uses rsync and hardlinks. Wont work on file systems that do not support hard links.

for both fsfs and Berkeley databases:
method 1:
svn-backup-dumps
essentially makes a svnadmin dump, but has nice features with optional compressing and copying to a ftp or samba server.


method 2:
"brute force"
svnadmin dump > dumpfile
bzip2 dumpfile

Inga kommentarer: