Date: Tue, 25 Mar 2003 19:00:34 +0200 From: "Yonatan Bokovza" <Yonatan@xpert.com> To: <freebsd-questions@FreeBSD.ORG> Subject: RE: [OT] file synchronization between two machines Message-ID: <C2DC75EEA405354AA9C03EF5CB8CDE080B68C0@exchange.xpert.com>
next in thread | raw e-mail | index | archive | help
> -----Original Message----- > From: Louis LeBlanc [mailto:leblanc+freebsd@keyslapper.org] > Sent: Tuesday, March 25, 2003 18:57 > To: freebsd-questions@FreeBSD.ORG > Subject: Re: [OT] file synchronization between two machines >=20 >=20 > On 03/25/03 06:40 PM, Yonatan Bokovza sat at the `puter and typed: > > > On Tuesday, Mar 25, 2003, at 08:01 US/Pacific, Louis=20 > LeBlanc wrote: > > >=20 > > > > Hey all. Sorry for the OT question, but here goes. > > > > > > > > Anyone know of a tool or method that can check the last=20 > modification > > > > date of two files under these conditions and keep them in sync? > > >=20 > > > I've never tried this, but you might give rsync with the=20 > -u option a=20 > > > try (test it first on unimportant files). I believe you=20 > > > would need to=20 > > > run it on both machines as it would only update in one direction. > >=20 > > rsync (from ports/net/rsync) does not need a peer on the other side. > > You can think of is as a clever scp- you can copy to/from one server > > to/from another server, only rsync can sync files on the=20 > block level,=20 > > so it's supposed to be more efficient than merely copying=20 > the files over. > > For your case, I'd say run a cron job at the firewalled=20 > machine to rsync > > the files over to the other one. >=20 > 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. >=20 > I had already thought of another recommendation to use CVS, but that > wouldn't work because the files are M$ Word (eww). Read it's man page: http://www.freebsd.org/cgi/man.cgi?query=3Drsync&apropos=3D0&sektion=3D0&= manpath=3DFreeBSD+Ports+4.7-RELEASE&format=3Dhtml you can do this at the firewalled machine (examples only, not real commands) : rsync -u user@remote:file file rsync -u file user@remote:file This will guarantee that file is the same on both machines. 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?C2DC75EEA405354AA9C03EF5CB8CDE080B68C0>