Andrew Fashion Asked: 2010-12-03 08:38:19 +0800 CST2010-12-03 08:38:19 +0800 CST 2010-12-03 08:38:19 +0800 CST How can I SCP entire directory but exclude a directory? 772 I want to SCP an entire directory over to my new server, but exclude the thumbs/ directory inside /storage. i want to scp over (and everything inside it, and all directories): /storage but exclude: /storage/thumbs thank you centos scp 2 Answers Voted Best Answer JooMing 2010-12-03T08:42:43+08:002010-12-03T08:42:43+08:00 Use rsync: rsync -av --exclude thumbs /storage dest Rsync uses secure copy. Chopper3 2010-12-03T08:44:23+08:002010-12-03T08:44:23+08:00 Happy to be proven wrong but there's nothing I can see in the man page to suggest you can, presumably you're using '-r' right?
Use rsync: rsync -av --exclude thumbs /storage dest
Rsync uses secure copy.
Happy to be proven wrong but there's nothing I can see in the man page to suggest you can, presumably you're using '-r' right?