-
Notifications
You must be signed in to change notification settings - Fork 251
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
Add option to stdin to cp #182
Comments
Second example passes bytes of |
Can't support for |
Agree that this would be very useful |
I'm looking to use s5cmd to do database backups. Postgres can stream to stdout. Is there a trick for using s5cmd to stream that to s3, so I don't have to put it on disk first? I know s5cmd has been around awhile, so perhaps there's some CMD trick folks are using to work around this? |
It would be nice to have a "pipe" command similar to https://docs.min.io/docs/minio-client-complete-guide.html#pipe |
@igungor Can we achive an implementation similar to this ? https://rclone.org/commands/rclone_rcat/ |
Would love this feature. Just tried and it doesn't work. |
Co-authored-by: İbrahim Güngör <[email protected]>
Co-authored-by: İbrahim Güngör <[email protected]>
Basically the other end of #20, which resulted in
s5cmd cat
. It doesn't look like using s5cmd run or cp has the magic "-" option to take in a piped input from stdin.Use cases: Pipe a tar archive (or any streamed command output) into s5cmd without needing a intermediary temp file. This also solves cases where we want to preserve timestamps, permissions, etc.
Example:
tar -cf - foo | s5cmd cp - s3://bar/foo.tar
or if using
s5cmd run
tar -cf - foo | echo "cp - s3://bar/foo.tar" | s5cmd run
The text was updated successfully, but these errors were encountered: