rsync dir in _both_ directions?

tim.conway at tim.conway at
Wed Feb 6 10:36:04 EST 2002

There's no such option.  Rember that Rsync was devised as an efficient way 
to mirror ftp sites.  What you're looking for is unison.  Some of the guys 
on here use it.  It's at "", and 
looks promising for your application.

Tim Conway
tim.conway at
Philips Semiconductor - Longmont TC
1880 Industrial Circle, Suite D
Longmont, CO 80501
Available via SameTime Connect within Philips, n9hmg on AIM
perl -e 'print pack(nnnnnnnnnnnn, 
".\n" '
"There are some who call me.... Tim?"

"Jack McKinney" <jackmc-rsync at>
Sent by: rsync-admin at
02/04/2002 10:58 AM

        To:     rsync at
        cc:     (bcc: Tim Conway/LMT/SC/PHILIPS)
        Subject:        rsync dir in _both_ directions?

    I felt certain there was an option to do this, but I cannot find it.
I want to rsync a directory on machine A over to machine B, and then rsync
the directory on machine B back to machine A.
    The idea is this:  I read my email using mutt, which is set to save my
email in ~/Mail in maildir format.  This means that each message is in its
own file, instead of being appended to an existing file.  Thus, if I 
my email by rsync'ing it to another machine, only the new messages are 
over.  Mailboxes need not be. Before you say that rsync only sends changed
blocks, and the changed blocks are at the end if the message is appended,
remember that mail readers write status into the headers of the messages.
If I change the status on the first message in the box (reply to it, 
it), then the ENTIRE mailbox is re-copied.  Not so in maildir format.
    Well, I read my email on my laptop, and it is sometimes necessary to
login to a central server to read my email (firewall issues).  What I do 
to peridocally sync with the central server (which we'll call "server") 

rsync -e ssh -rptlv Mail server:.
rsync -e ssh -rptlv server:Mail .

    I'd like to do this in one command.  Is there a switch to rsync that
says to make the local and remote directories identical, even if that 
transfering data in both directions?

"There is no parameter that makes it impossible        Jack McKinney
     for you to perform still more excellently."       jackmc at
   -Mario Cuomo, on the lack of a clock in baseball
1024D/FBED2DAA 4096g/3F93879F
2002 Chicago Cubs magic number: 163

-------------- next part --------------
A non-text attachment was scrubbed...
Name: attj7zff.dat
Type: application/octet-stream
Size: 247 bytes
Desc: not available
Url :

More information about the rsync mailing list