Tugger the SLUGger!SLUG Mailing List Archives

Re: [SLUG] Copying Home directories to a new server


it follows symlinks to dirs, so I'll make a WAG that it does the wrong
thing on symlinks to files too.

Good point.
Rob

On Sun, 2003-05-04 at 23:06, mlh@xxxxxxxxxx wrote:
> On 04 May 2003 22:10:04 +1000
> Robert Collins <robertc@xxxxxxxxxxxxxxx> wrote:
> > Or you can cpio directly through ssh.
> > 
> > Or 
> > scp -pr
> 
> I'm not sure whether scp does the right thing
> with symlinks.  tar and cpio do.
> 
> Something like:
> 
> oldmachine#  cd /home && tar cf - . | ssh newmachine 'cd /home && tar xpf -'
> 
>   or 
> 
> oldmachine#  cd /home && find . -print0 | cpio -oc0 | ssh newmachine 'cd /home && cpio -icdm'
> 
> Assuming /home is home of course, on both machines.
> 
> Matt
> 
> 
> 
-- 
GPG key available at: <http://users.bigpond.net.au/robertc/keys.txt>.

Attachment: signature.asc
Description: This is a digitally signed message part