-------- Original Message -------- Subject: Re: rsync / ssh / Firewall "Hole" coolness Date: Tue, 25 Jan 2005 12:03:14 -0700 From: Patrick Fleming, EA To: plug-discuss@lists.plug.phoenix.az.us References: <200501251017.25909.ed@flat5.net> Ed Skinner wrote: > From one office machine to the other the command to synchronize is very > straightforward: > rsync -v -r -e ssh Common/ user@system:Common/ > Make the appropriate substitutions for user and system. This will end up > in a cron entry (but gotta figure out where the password goes) that fires, > for example, at 2:00AM. Use public/private keypairs and rsync -v -r -e "ssh -i /path/to/identity/file" Common/ system:Common/ > Synchronizing from office to home took a guess about how rsync would > actually implement the "-e ssh" option and, because this "feature" isn't > precisely documented, YMMV, but it seems to work on the four distributions I > have at my disposal. Here is the command: > rsync -v -r -e "ssh -p port" Common/ user@system:Common/ > Substitute the correct values for port, user and system. > The "trick" is putting the ssh command option, the "-p port", inside the > quotes with the "ssh" command itself to get ssh to use the specified port > number. (The man page for "rsync" *also* talks about port numbers, but those > are only relevent when using rsyncd *without* ssh.) > This too will end up in a cron entry (and with a password somewhere?) > that fires during the night as well, some time *after* the first one > finishes, or [better still] in a script that runs the first rsync, then this > one so they are sure to run in the necessary order, and neither too early nor > unnecessarily late. > And on my home systems, another cron entry will, at 5:00AM or so, rsync > those two machines. Presumably by 6:00AM or so, all four systems will be in > sync each day. > > Don'cha just love Linux? > --------------------------------------------------- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change you mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss