I want to copy only directories from a folder on a remote server to my server. Is that possible? Here is the code I have so far but it copies files and folders:
scp -rq email@example.com:/copy/from/ /copy/it/here/
I also have an alternative for the code above:
ssh -q firstname.lastname@example.org "cp -r /copy/from/ /copy/it/here/"
The problem is that both are copying the entire folder (including all folders and directories) from /copy/from/. Is there a way of only copying directories?