Re: Copying Directory Structures

From: Stephen M. Dunn (stephen_at_stevedunn.ca)
Date: 07/22/03


Date: Tue, 22 Jul 2003 16:40:04 GMT

In article <tF9Ta.23684$b03.1019@lakeread03> "Joe Burns" <joeburns@callageek.com> writes:
$ Now I need to copy
$the entire contents, with the same file ownerships, groups, etc intact, from
$the old system to the new system. I can't remember how to do that. I
$believe that I used to use UUCP between servers when I would dial-up from
$one city to the other (about 10 years ago), but I never had to do this
$process across an Ethernet connection. Would I use "uucp" or "rcp" or
$something else?

   I'm not claiming this is necessarily the best way, but I've done
this before using rcmd - something like (run this on the source machine):

find | cpio -o | rcmd destinationmachine "cd /wherever; cpio -i"

   You'll have to add appropriate arguments to the find and cpio
and cpio commands; the man pages for those two have plenty of
information.

   Doing it this way, you don't have any temporary files; the output
of cpio on the source machine is fed across the network to the input
of cpio on the destination machine.

-- 
Stephen M. Dunn                             <stephen@stevedunn.ca>
>>>----------------> http://www.stevedunn.ca/ <----------------<<<
------------------------------------------------------------------
     Say hi to my cat -- http://www.stevedunn.ca/photos/toby/