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
|
feedback
|
|
Use rsync: rsync -av --exclude thumbs /storage dest Rsync uses secure copy. | |||||||||||
feedback
|
|
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? | |||
|
feedback
|
|
You can simply move the excluded folder to another path and then scp the parent folder. At the end, re-move the folder to its original location. | |||
|
feedback
|