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

Support for borg backups #818

Open
ml-evs opened this issue Jul 27, 2024 · 0 comments
Open

Support for borg backups #818

ml-evs opened this issue Jul 27, 2024 · 0 comments
Assignees

Comments

@ml-evs
Copy link
Member

ml-evs commented Jul 27, 2024

In https://github.com/datalab-industries/datalab-ansible-terraform I've been working on using borg and borgmatic for automated, encrypted, compressed and de-duplicated snapshot backups. This is slightly harder to setup than the simple filesystem dump, but greatly enhances resilience and massively reduces storage space. There is direct support for backing up MongoDB in borgmatic too.

I propose to add this as another backup type directly in datalab, so that datalab can:

  • check backup health of remote borg backups
  • restore from a borg snapshot
  • warn/notify when either "native" or borg backups are not configured.

Some other stuff:

  • Both Borg and borgmatic are written in Python and have associated Python packages, so it should be straightforward to integrate
  • It is relatively easy to automate in ansible, but probably following the cron config for local backups, we should have a script that installs scheduled jobs from datalab directly, so there is a single source of truth.
  • If this works well, we can consider massively reducing the default backup frequency for native backups, or even disabling it altogether.
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