Azure / azure-storage-azcopy

The new Azure Storage data transfer utility - AzCopy v10
MIT License
607 stars 219 forks source link

Untar .tar files after decompressing #1544

Closed gvilar closed 2 months ago

gvilar commented 3 years ago

Hello,

When I use decompress option on a tar.gz file and content-encoding setted to gzip azcopy download file and delete gz extension only (not uncompress and delete gz - not tar.gz) . The copy delete the gz extension only and don't uncompress the file.

Any way to download and uncompress a tar.gz file with azcopy ?

Azcopy Version: azcopy version 10.12.1 on Linux

Command used:

azcopy copy https://blob_url/archive.tar.gz --decompress destination/

Result :

destination/archive.tar

adreed-msft commented 3 years ago

You're right; it decompressed the file, but it did not untar it. I'll mark this a feature request.

digital2real commented 2 years ago

Tar extract to destination would be greet!

Support of tar extract from stdin (pipe) would be a killer feature for me.

My use case for backup restore with borg could be :

borg export-tar /path/to/repo::Monday - | azcopy copy --tar-extract "https://[account].blob.core.windows.net/[container]/[path/to/blob]" --from-to PipeBlob

seanmcc-msft commented 2 months ago

Unfortunately, we are not going to add this functionality. We are focused on documentation, testing, and quality, and this feature would represent a large increase in scope for the product.