[Sunhelp] "Mirroring" two directories over the net. Info please.

Doug McLaren dougmc at frenzy.com
Mon Aug 2 00:58:25 CDT 1999


On Sun, Aug 01, 1999 at 08:03:56PM -0700, Adrian Petrescu wrote:

| Is there any kind of "tool" to help me to create a mirror of a directory 
| (file system) located on an UNIX box to another directory (file system) on a 
| different UNIX box over the net ?

The one shot method :

   tar -cf - . | rsh host 'cd /whatever ; tar -xpvvf -'

(replace rsh with ssh if that's what turns your crank.)

If you want to automate it and make it efficient, you may want to look
into rsync, available at ftp://samba.anu.edu.au/pub/rsync.

Of course there's a dozen other answers to this question, but these
two will usually do quite nicely.

-- 
Doug McLaren, dougmc at frenzy.com






More information about the SunHELP mailing list