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
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?