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

Native support for automatic backups #467

Merged
merged 8 commits into from
Jan 19, 2024
Merged

Native support for automatic backups #467

merged 8 commits into from
Jan 19, 2024

Conversation

ml-evs
Copy link
Member

@ml-evs ml-evs commented Oct 23, 2023

Closes #464.

This PR provides the config, functionality and automation tasks for making and restoring backups of entire datalab instances. Configured backups can be synced with remote systems via SSH, and will handle backup retention (e.g., keeping n copies before removing them to save space). The default set of configured backups will locally backup daily (7 copies), weekly (4 copies) and quarterly (4 copies) for good coverage, and allows admins to configure additional remote backups instead.

What this PR does not yet implement is scheduled backups, even though the config options are there. This will have to be handled in the future with APScheduler or something similar. For now, the invoke task for creating backups can be added to a local crontab or otherwise (though it is not recommended to do this inside the docker containers themselves).

@ml-evs ml-evs added the enhancement New feature or request label Nov 14, 2023
@ml-evs ml-evs force-pushed the ml-evs/native-backups branch 4 times, most recently from 3483fb9 to abf336a Compare January 3, 2024 20:38
Copy link

cypress bot commented Jan 3, 2024

Passing run #722 ↗︎

0 26 0 0 Flakiness 0

Details:

Merge a15398a into 74f2369...
Project: datalab Commit: b6f0fe3dc1 ℹ️
Status: Passed Duration: 01:40 💡
Started: Jan 19, 2024 12:06 AM Ended: Jan 19, 2024 12:07 AM

Review all test suite changes for PR #467 ↗︎

@ml-evs ml-evs force-pushed the ml-evs/native-backups branch 2 times, most recently from 0568e86 to 91de6c6 Compare January 3, 2024 22:09
@ml-evs ml-evs changed the title Native support for scheduled offsite backups Native support for automatic backups Jan 18, 2024
@ml-evs ml-evs marked this pull request as ready for review January 18, 2024 15:36
@ml-evs ml-evs force-pushed the ml-evs/native-backups branch 7 times, most recently from e0fa3cc to a65d677 Compare January 18, 2024 23:33
@ml-evs ml-evs merged commit f7b1960 into main Jan 19, 2024
8 checks passed
@ml-evs ml-evs deleted the ml-evs/native-backups branch January 19, 2024 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build native backup system directly into datalab
1 participant