Re: Transfer home directory?

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Darrin Chandler
Date:  
To: alandd, Main PLUG discussion list
Subject: Re: Transfer home directory?
On Sun, Sep 17, 2006 at 01:16:26PM -0700, Alan Dayley wrote:
> On Sun, September 17, 2006 6:07 am, Darrin Chandler wrote:
> >
> > FYI, scp has a nice -p option to preserve that info. Couldn't live
> > without it!
> >
> > If you have scads of little files then tar is your friend, as that'll
> > take a lot of extra time with plain scp -rp. If that 11GB is made of
> > files in the MB range then scp will make good enough use of bandwidth.
> > If the large files aren't already compressed then using -C with scp will
> > also help a lot.
>
> Does scp copy hidden (ie ".*") directories? I am not yet seeing that it
> is happening. I'll do some additional tests.


"scp * ..." will not copy dot files or directories any more than "echo
*" would echo them. It's shell globbing at that point.

$ pwd
/home/alandd
$ scp -rp * remote.computer: # Copies dot files everywhere except pwd!
$ scp -rp /home/alandd remote.computer:/home/ # Better

Does that answer it, or did I misunderstand?

-- 
Darrin Chandler            |  Phoenix BSD Users Group
   |  http://bsd.phoenix.az.us/
http://www.stilyagin.com/  |
---------------------------------------------------
PLUG-discuss mailing list - 
To subscribe, unsubscribe, or to change  you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss