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

Direct pipe instead of temporary file? #18

Open
dobesv opened this issue Dec 20, 2019 · 0 comments
Open

Direct pipe instead of temporary file? #18

dobesv opened this issue Dec 20, 2019 · 0 comments

Comments

@dobesv
Copy link

dobesv commented Dec 20, 2019

Someone on stack overflow has this recipe to directly pipe the file through without a temporary file:

pg_dump -Z 9 -v -h ${DATABASE_HOST} -U ${DATABASE_USER} -d ${DATABASE_NAME} | aws s3 cp --storage-class STANDARD_IA --sse aws:kms - s3://my-bucket/dump.sql.gz

I wonder if that would be an improvement over what you have here.

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

No branches or pull requests

1 participant