LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   scp only unhidden files recursively (https://www.linuxquestions.org/questions/linux-general-1/scp-only-unhidden-files-recursively-920498/)

vendtagain 12-25-2011 06:41 PM

scp only unhidden files recursively
 
How do you use scp to recursively copy unhidden files? All hidden files are being copied when I use it, and I don't see anything in the man pages to prevent this.

jhwilliams 12-25-2011 07:11 PM

I would use rsync instead, with the --exclude option.

Code:

rsync -av --exclude '.*' src/ dest


All times are GMT -5. The time now is 03:22 AM.