Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Mar 2003 11:02:12 -0600
From:      Dan Nelson <dnelson@allantgroup.com>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: [OT] file synchronization between two machines
Message-ID:  <20030325170212.GC48060@dan.emsphone.com>
In-Reply-To: <20030325165723.GB2618@keyslapper.org>
References:  <C2DC75EEA405354AA9C03EF5CB8CDE089AA63D@exchange.xpert.com> <20030325165723.GB2618@keyslapper.org>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Mar 25), Louis LeBlanc said:
> That sounds right, but what if the file last changed on the remote
> machine?  Will rsync copy the newer remote copy to the local machine
> when necessary and copy the newer local copy to the remote machine
> when necessary?  This is the problem, really.  Running rsync on both
> machines won't do any good, because the remote machine can't come
> thru the firewall.

You run it on one machine twice, once for each direction.  From the
manpage:

      To synchronize my samba source trees I use the following:
              rsync -avuzb --exclude '*~' samba:samba/ .
              rsync -Cavuzb . samba:samba/
 

The only drawback is rsync will never delete files; you have to
manually remove them from both machines manually.

-- 
	Dan Nelson
	dnelson@allantgroup.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030325170212.GC48060>