Transfer home directory?

Darrin Chandler dwchandler at stilyagin.com
Sun Sep 17 13:27:37 MST 2006


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
dwchandler at stilyagin.com   |  http://bsd.phoenix.az.us/
http://www.stilyagin.com/  |


More information about the PLUG-discuss mailing list