Ryan Schmidt wrote on Fri, Sep 03, 2010 at 16:57:31 -0500:
>
> On Sep 3, 2010, at 16:51, Daniel Shahaf wrote:
>
> > Ryan Schmidt wrote on Fri, Sep 03, 2010 at 15:29:17 -0500:
> >
> >> the dump format does not include information
> >> about hook scripts, config files or locks. If you dump and load, the new
> >> repository will have the default hook script templates (so, no hook scripts),
> >> the default configuration, and nothing locked. But I think you can manually
> >> bring the relevant files from the old repository to the new one to preserve
> >> this data.
> >
> > For hooks and config files, yes.
>
> I thought I heard others say you could copy the db/locks directory to
> preserve locks, too. Will that not work?
The API does not promise that copying db/locks will work.
And if someone tries that anyway? In general, I think the answer to
your question is the same as the answer to the general "Can I rsync my
repository directory?" question:
* under FSFS, the API doesn't allow it but it might work under certain
conditions.
* under BDB, db/locks is a BDB database,
and you probably know better than me when it is/isn't safe to just
copy those :-).
Received on 2010-09-04 00:31:36 CEST