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

postgres: add option to cloudctl postgres delete to also delete the referenced backup-config #190

Open
FrankEppink opened this issue Jul 1, 2022 · 2 comments

Comments

@FrankEppink
Copy link

an option for cloudctl postgres delete ... would be helpful to also delete the referenced backup-config.

Obviously the actual deletion of the backup-config should only be done, when the backup-config is only referenced by the to-be-deleted postgres(let) and has no other postgres(lets) using it.

@eberlep
Copy link
Collaborator

eberlep commented Jul 21, 2022

I find that a bit dangerous. If you, by accident, remove the wrong database, you also remove all existing backups. So you wipe all your data with one command.

I am open to discussions, but I would like to not implement this :-)

@FrankEppink
Copy link
Author

Does deletion of a backup-config mean that all related backups are deleted? If yes I agree this would be far too dangerous.

An alternative would be to introduce an additional option for cloudctl postgres backup-config list, e.g.

cloudctl postgres backup-config list --orphaned

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

2 participants