SPUG: remote synchronization

Andrew Sweger andrew at sweger.net
Wed Jun 12 14:40:19 CDT 2002

On Tue, 11 Jun 2002, Mako Hill wrote:

> rsync great it but it's really only works one direction. If you want
> true bidirectional support you're going to need to need to look
> elsewhere.

This isn't necessarily true. The update option on rsync will only
overwrite files with newer versions. The down side is that deletions
either only propogate in one direction or not at all.

rsync -aru --delete /master secondary.host.com:/store
rsync -aru secondary.host.com:/store /master

I've even used this to keep two cvsroot's sync'd. (Yes, there are
risks. But you didn't get into computers because it's safe, right?)

So, you're right, it's not really true bidirectional support. But the hack
comes in handy at times.

Andrew B. Sweger -- The great thing about multitasking is that several
                                things can go wrong at once.

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     POST TO: spug-list at pm.org       PROBLEMS: owner-spug-list at pm.org
      Subscriptions; Email to majordomo at pm.org:  ACTION  LIST  EMAIL
  Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
 For daily traffic, use spug-list for LIST ;  for weekly, spug-list-digest
     Seattle Perl Users Group (SPUG) Home Page: http://seattleperl.org

More information about the spug-list mailing list