[Csync2] -T shows files with "L", but -u doesn't transfer tehm

Dustin Mitchell dustin at mozilla.com
Fri May 25 04:10:58 CEST 2012


----- Original Message -----
> Howto integrate a new host into an existing csync2 setup.
> 
>  * edit the config files, everywhere, so they know each other.
>  * make sure your old hosts are "in good order":
>    A# csync2 -x
>    B# csync2 -x
>  * if you have already files on the new node to be synced,
>    now would be a good time
>    C# csync2 -x
> 
>    If you'd rather chose one of the existing hosts to be "master",
>    and have the new host become a clone of that, *instead* do
>    just initialize the database on the new host with the current
>    state
>    C# csync2 -cIr /
> 
>  * on the old hosts, compare the database with the other node's
>  databases
>    A# csync2 -TUXI; csync2 -u
>    B# csync2 -TUXI; csync2 -u
>    assuming A and B are properly in sync already,
>    doing so on one is sufficient.
> 
>    Careful, this may schedule stuff for deletion if it is missing
>    from
>    the local database, but present on the remote side.
>    (That's the -X modifier).
> 
> That should be it.

I can confirm that this works, but it has the disadvantage you describe, and also isn't particularly automatable (since the -TUXI run must occur on a different host than the one being set up).

However, your reply didn't really help me understand the problem or the solution.  Can you tell me a bit about what's going on here, and I'll try to come up with some text to add to the documentation?  As I mentioned in my original email, the docs give the distinct impression that -I is only an optimization, and don't talk about -TI as a pair, much less -U and -X.

Dustin


More information about the Csync2 mailing list