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

snapshot: add pg_dump command builder with 'snapshot databases' #889

Merged
merged 5 commits into from
Nov 28, 2022

Conversation

bobheadxi
Copy link
Member

@bobheadxi bobheadxi commented Nov 26, 2022

Add simple utility for generating commands that can then be run/modified to create database dumps.

Right now, it's mostly for reference - as we build experience with different setups we can see if this can be made more flexible in the right ways. I believe a templating command like this is important to have, however, since we want to make sure all databases are exported and the correct flags are used with pg_dump, and documentation + manual copy-paste is error-prone.

Closes https://github.com/sourcegraph/customer/issues/1611 for now.

Test plan

image

Also tested the kubectl commands on k8s.sgdev.org

@bobheadxi bobheadxi requested review from michaellzc and a team November 26, 2022 00:24
@bobheadxi bobheadxi requested review from michaellzc and a team November 28, 2022 18:52
@bobheadxi
Copy link
Member Author

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

@bobheadxi bobheadxi merged commit 5d82eb0 into main Nov 28, 2022
@bobheadxi bobheadxi deleted the src-snapshot-pgdump-templater branch November 28, 2022 22:48
scjohns pushed a commit that referenced this pull request Apr 24, 2023
Add simple utility for generating commands that can then be run/modified to create database dumps.

Right now, it's mostly for reference - as we build experience with different setups we can see if this can be made more flexible in the right ways. I believe a templating command like this is important to have, however, since we want to make sure all databases are exported and the correct flags are used with pg_dump, and documentation + manual copy-paste is error-prone.

Co-authored-by: Michael Lin <mlzc@hey.com>
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 this pull request may close these issues.

2 participants