[ old thread, but I'd like to add this warning to the archives: ]

> > > > If you ensure that no commits happen during the backup period you
> > > > could use rsync instead.
> > >
> > > It is not safe to rsync live Subversion filesystems. (the result may or
> > > may not be corrupt)
> >
> > That's why I said that no commits should happen. But thanks for
> > spelling it out more explicitly.
> 
> I believe an SVN repo can be put into read-only mode quickly by

Your suggested method may cause corruption in two different ways.

> linking the pre_commit hook to /bin/false (linking is believed to be
> an atomic operation, so no race conditions) and wait a bit to let all
> commits finish. Read operations are guaranteed to not alter the repo
> files. rsyncing should then be ok, but I still prefer to hotcopy since
> this is the canonical way to go...
> 

Reply via email to