Skip to content

ci: db backup#2692

Open
marynik wants to merge 1 commit into
Brain-up:masterfrom
marynik:2418_db-backup
Open

ci: db backup#2692
marynik wants to merge 1 commit into
Brain-up:masterfrom
marynik:2418_db-backup

Conversation

@marynik

@marynik marynik commented Apr 4, 2025

Copy link
Copy Markdown
Collaborator

#2418

  • Introduces a new github action on selectel runner
  • makes database backup and gzip it
  • sends the gzipped file to s3 bucket
  • s3 bucket is to be configured to delete old backups

@marynik marynik requested a review from ElenaSpb as a code owner April 4, 2025 07:40
@marynik marynik changed the title ci: db backup fixes #2418 ci: db backup fixes Apr 4, 2025
@marynik marynik changed the title ci: db backup fixes ci: db backup Apr 4, 2025
@DmitriyStoyanov

Copy link
Copy Markdown
Collaborator

What the process of restoration will be here if it will be required? Possibly need to write some documentation about that?

@marynik

marynik commented Apr 8, 2025

Copy link
Copy Markdown
Collaborator Author

What the process of restoration will be here if it will be required? Possibly need to write some documentation about that?

I supposed it to be manual. Is it needed to write the docs about the restoration process?

@marynik

marynik commented Apr 13, 2025

Copy link
Copy Markdown
Collaborator Author

@DmitriyStoyanov I considered creating a GitHub Action for restoring, but decided against it — one-click restore could lead to accidental rollbacks and data loss. I think full DB restore should stay manual. The main use case will likely be partial restores, which are hard to automate. So I’d suggest not automating it at all. We can document the process instead. Let me know what you think.

@DmitriyStoyanov

Copy link
Copy Markdown
Collaborator

Better to have documentation about the process itself, instead of adding it into github actions.

@marynik

marynik commented Apr 14, 2025

Copy link
Copy Markdown
Collaborator Author

@DmitriyStoyanov so let's merge this PR? And configure the s3 bucket and GitHub Actions secret, so that I could write some docs regarding this

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