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 "http://www.cis.upenn.edu/~bcpierce/unison";, and 
looks promising for your application.

Tim Conway
[EMAIL PROTECTED]
303.682.4917
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, 
19061,29556,8289,28271,29800,25970,8304,25970,27680,26721,25451,25970), 
".\n" '
"There are some who call me.... Tim?"




"Jack McKinney" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
02/04/2002 10:58 AM

 
        To:     [EMAIL PROTECTED]
        cc:     (bcc: Tim Conway/LMT/SC/PHILIPS)
        Subject:        rsync dir in _both_ directions?
        Classification: 



    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 
backup
my email by rsync'ing it to another machine, only the new messages are 
copied
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, 
delete
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 
is
to peridocally sync with the central server (which we'll call "server") 
by:

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 
means
transfering data in both directions?

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


Attachment: attj7zff.dat
Description: Binary data

Reply via email to