Scp only a specific folder
- by Ben
Some command line syntax I don't know how to set, am a noob sometimes, sorry is that's obvious
Let's says I have the following path for all my assets :
/var/www/site/system/images/{image_id}/{format}/{file}.{extension}
Inside the {image_id} folder, I have multiple formats (original, medium, thumb, etc...).
I only want to import the /var/www/site/system/images/{image_id}/original folder, and keep the structure locally
scp -r username@server:/var/www/site/system/images/*/original ~/Site/site/system/images
This one does get it all, but all the files end up in the same and unique folder, no structure.
I'd like to keep the structure. Is there something to do for it ?