I have gotten SSH access into an EC2 instance of Ubuntu.
I want to zip an entire folder, and download it to my local machine.
The folder is large - 2GB+.
How do I do that?
I have gotten SSH access into an EC2 instance of Ubuntu.
I want to zip an entire folder, and download it to my local machine.
The folder is large - 2GB+.
How do I do that?
The are several ways to do what you want, one of them, assuming your local machine is a Windows one, would be:
use tar to archive and compress the directory, for example using bzip2
tar cjvf /path/to/target/archive.tar.bz2 /path/to/directory/to/compress
use psftp, access to the ubuntu machine and download the tar file
Read the tar(1)
manual page for more details.