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

waltdnes-SLHPyeZ9y/tg9hUCZPvPmw at public.gmane.org waltdnes-SLHPyeZ9y/tg9hUCZPvPmw at public.gmane.org
Wed May 15 19:10:51 UTC 2013


  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?

-- 
Walter Dnes <waltdnes-SLHPyeZ9y/tg9hUCZPvPmw at public.gmane.org>
I don't run "desktop environments"; I run useful applications
--
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