barnybug / s3

Swiss army pen-knife for Amazon S3: grep, cat, ls, sync, and more.
MIT License
57 stars 13 forks source link

s3 put - allow stdin for source file #13

Open hdpdevops opened 5 years ago

hdpdevops commented 5 years ago

Love this tool, very clean and easy to use.

I would like to use this tool to upload data via the stdin using a pipe.

Bad Eg. > echo dog | s3 put -- - s3://my-bucket/favorite-animal

Better Eg. > mysqldump large_database | gzip -9 | s3 put -- - s3://database-backups/large-database.tar.gz

I have tried something like this and it doesn't seem to work. Is there a workaround for this?

Thanks!