Actually I am doing the replication on the same server. We didn't want
trac and development use of svn conflicting -- which was probably an
unreasonable fear.
And yes I do an incremental dump of only the just completed transaction
and then loads that into the replicant repository.
For your situation I'd do the following:
1) in post-commit:
a) incremental dump:
/usr/bin/svnadmin dump "$REPOS" --revision "$REV" --incremental \
> "$REPOS"/tmp/"$REV"
b) scp the dump to the trac host:
/usr/bin/scp "$REPOS"/tmp/"$REV" trachost:/path/to/dumpto
2) Have a daemon (script) running on the trac host that loads each new
scp'd transaction into the repliant repository:
/usr/bin/svnadmin load /replicant/repos < /path/to/dumpto/file
You might want to check out SVN::Mirror. It might be easier...
jbw
Toni Brkic wrote:
> Do you copy the whole database over the network and overwrite the
> existing one on the trac-server.
> Or do you dump the last revision and somehow load it over the network
> to the trac-server.
>
> Could you maybe post your post-commit hook script or the relevant lines.
>
> Cheers,
>
> /T
>
>
> Joby Walker wrote:
>
>> Toni,
>>
>> Instead of trying to reach your repository over ssh, you can bring
>> your repository to the Trac server. I currently replicate my
>> repositories with some commands in the post-commit hook. There is
>> also the CPAN module SVN::Mirror.
>>
>> jbw
>>
>> Toni Brkic wrote:
>>
>>> Hi,
>>>
>>> does anybody know if is it possible to setup trac so that it uses a
>>> subvesion repository over ssh. The machine I have trac on doesnt have
>>> the repository locally.
>>>
>>>
>>> Cheers,
>>>
>>> /T
>>> _______________________________________________
>>> Trac mailing list
>>> Trac@lists.edgewall.com
>>> http://lists.edgewall.com/mailman/listinfo/trac
>>
>>
>> _______________________________________________
>> Trac mailing list
>> Trac@lists.edgewall.com
>> http://lists.edgewall.com/mailman/listinfo/trac
>
>
> _______________________________________________
> Trac mailing list
> Trac@lists.edgewall.com
> http://lists.edgewall.com/mailman/listinfo/trac