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 firstname.lastname@example.org:/copy/from/ /copy/it/here/
I also have an alternative for the code above:
ssh -q email@example.com "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?