On Mon, 2006-04-17 at 20:39 +0200, Jacob Atzen wrote:
> On Mon, Apr 17, 2006 at 11:08:54AM -0400, Óscar Morales Vivó wrote:
> > Making a backup copy of a trac repository is easy enough (checked out  
> > the wiki, tried it out. Works).
> > 
> > The problem I'm having is for setting a backup strategy. Trying to  
> > place a hotcopy on top of another one doesn't work, and there seems  
> > to be no way to do an incremental backup. So I'm wondering what other  
> > people are doing for backing up their repositories.
> > 
> > I'm trying to set up some automated way to do it but would like to  
> > see what other people are doing and how they are doing it. So any  
> > advice about tools to use, strategies to apply etc will be welcome.
> > 
> > Thanks in advance for everyone's help:
> 
> I find rdiff-backup to be a nice tool for the job. It doesn't do the
> whole hot-copy thing, so if you want to be on the safe side do that
> first and perform the rdiff-backup on the copy. Rdiff-backup works with
> an incremental scheme so I have only "one" backup of my trac
> installation but I can restore it as it was as of any point in the past.

Yeah, maybe I should've mentioned that in my previous email.  That kind
of setup is really easy to do with Backupninja[1].  I have two small
configs for doing the Trac and Subversion hotcopies (by default
to /var/backups):

/etc/backup.d# cat 10.trac
src = /var/trac

/etc/backup.d# cat 11.svn
HOTBACKUP = /usr/bin/svnadmin hotcopy --clean-logs
src = /var/svn

Then there's another file with the rdiff-backup config for the
directories to include and the remote server's information.

Rdiff-backup is pretty convenient since you always have the latest
backup with diffs to restore previous versions if necessary.  Plus it's
quite bandwidth efficient for updating the backup.  I have 4 GB of
Trac/Subversion data that took about 6 hours to transfer over the rather
slow connection to my backup location.  However, after the initial
backup the nightly updates now only take about 15-20 minutes.

-- 
Matthew Good <[EMAIL PROTECTED]>

[1] http://dev.riseup.net/backupninja/

_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac

Reply via email to