How do I copy all files with scp in 1 command?

Lennart Sorensen lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Thu May 16 14:57:28 UTC 2013


On Wed, May 15, 2013 at 03:10:51PM -0400, waltdnes-SLHPyeZ9y/tg9hUCZPvPmw at public.gmane.org wrote:
>   I'm mostly finished setting up a new desktop PC, after which an
> ancient PC will go to the York Region ewaste centre.  One problem I ran
> into whilst copying over files is that "dot-files", e.g. .bash_profile
> and .bashrc are not copied over when I specify "*".  What I ended up
> doing was...
> 
> scp * new_machine:/home/waltdnes/
> scp \.* new_machine:/home/waltdnes/
> 
>   Is there a simpler way that works with 1 command?

scp * \.* new_machine:/home/waltdnes/

Is that simpler?

-- 
Len Sorensen
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list