How to make scp copy hidden files?
Posted
by
rascher
on Server Fault
See other posts from Server Fault
or by rascher
Published on 2009-06-07T18:39:11Z
Indexed on
2012/03/23
17:31 UTC
Read the original article
Hit count: 220
scp
I often use SCP to copy files around - particularly web-related files. The problem is that whenever I do this, I can't get my command to copy hidden files (eg, .htaccess).
I typically invoke this:
scp -rp src/ user@server:dest/
This doesn't copy hidden files. I don't want to have to invoke this again (by doing something like scp -rp src/.* ...
- and that has strange .
and ..
implications anyway.
I didn't see anything in the scp
man page about an "include hidden files".
How can I accomplish this?
© Server Fault or respective owner