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?
Answer
The are several ways to do what you want, one of them, assuming your local machine is a Windows one, would be:
- Acces via putty onto the ubuntu machine
-
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.
Attribution
Source : Link , Question Author : marc.gayle , Answer Author : dawud