peak/s5cmd

README.md incorrect example "you can compress the data before uploading"

Opened this issue · 1 comments

s5cmd/README.md

Line 269 in c1c7ee3

Or you can compress the data before uploading:

says:

Or you can compress the data before uploading:

tar -cf - file.bin | s5cmd pipe s3://bucket/file.bin.tar

But tar -cf - file.bin does not compress anything.

Hi,

Thanks for pointing that out.
An example like the one below could be more appropriate and simpler.

gzip -c file | s5cmd pipe s3://bucket/file.gz

If you want to create a TAR archive, you can use a command like this:

tar -czf - file.bin | s5cmd pipe s3://bucket/file.bin.tar.gz

I opened a PR and it will be updated as soon as possible.