I have a directory on my Ubuntu server that has many subdirectories and files. I want to download entire folder, so I used this command:
scp -r [email protected]:/path/to/target_directory /path/to/local_directory
So target_directory ends up in /path/to/local_directory/target_directory. This is fine so far.
The problem: target_directory is not so big (around 50MB) but has many tiny files. scp
download files one by one, which takes too long. So I'm thinking may be there's a way to compress the directory and download it (optionally, without keeping the compressed file on the server). I think it's achievable but not sure how.
Note: I use Mac for my local machine.