Using rsync for two-waz-synchronisation

tim.conway at tim.conway at
Tue Sep 17 16:47:01 EST 2002

rsync isn't the tool for this job.  The best-suited tool (aside from a 
distributed filesystem) is unison, available at
Good luck.

Tim Conway
tim.conway at
303.682.4917 office, 303.921.0301 cell
Philips Semiconductor - Longmont TC
1880 Industrial Circle, Suite D
Longmont, CO 80501
Available via SameTime Connect within Philips, caesupport2 on AIM
"There are some who call me.... Tim?"

"Seemueller, Andreas" <andreas.seemueller at>
Sent by: rsync-admin at
09/17/2002 12:01 AM

        To:     rsync at
        cc:     (bcc: Tim Conway/LMT/SC/PHILIPS)
        Subject:        Using rsync for two-waz-synchronisation


is there any way to use rsync for two-way-syncronisation? I want to use 
it to keep the data on two hosts consistent. Sometimes one of this hosts 
(sometimes the first, sometimes the second) changes its location.
If the two hosts are at the same location I want automatically rsync them.
The data only changes at one hosts but it is not defined on which host 
it changes.
For example:
I have this structure on host 1:

If rsync from host 1 to host 2, host2 has the same structure.
This are my options:
rsync -e "ssh -1" -a --delete --exclude "lost+found" /somepath 

If I create a file on host 1 and run rsync again the file is also on host 
But: If I create a file on host 2 and run rsync on host 1 the file is 
deleted on host 2. If I use -u instead of --delete files that changed on 
host 2 are not overwritten but they are also not copied to host 1.

I want to have the same files on both hosts by running rsync as cronjob 
on one host.

with kind regards
Andreas Seemüller

EADS Deutschland GmbH
European Aeronautic Defence and Space Company
Business Unit Military Aircraft
MT641 - Simulationsanlagen
81663 München
Tel. +49 (89) 607-22809
Fax  +49 (89) 607-22491
Email: andreas.seemueller at

To unsubscribe or change options:
Before posting, read:

More information about the rsync mailing list