Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
PerMildner opened this issue Feb 20, 2024 · 1 comment · May be fixed by #708
Open

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

PerMildner opened this issue Feb 20, 2024 · 1 comment · May be fixed by #708

Comments

@PerMildner
Copy link

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.

@ahmethakanbesel
Copy link
Contributor

ahmethakanbesel commented Mar 3, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants