AWS CLI - is there a way to extract tar.gz from S3 to home without storing the tar.gz?

Viewed 16270

To elaborate,

There is a tar.gz file on my AWS S3, let's call it example.tar.gz.

So, what I want to do is download the extracted contents of example.tar.gz to /var/home/.

One way to do it is to simply download the tar.gz, extract it, then delete the tar.gz.

However, I don't want to use space downloading the tar.gz file, I just want to download the extracted version or only store the extracted version.

Is this possible?

Thanks!

3 Answers

Today I tested with Python Boto 3 and aws cli and I noticed that tar.gz is extracted automatically when the file is downloaded

Related