-
Notifications
You must be signed in to change notification settings - Fork 32
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
OZ-331: Add backup and restore support #121
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rbuisson
reviewed
Nov 12, 2024
enyachoke
force-pushed
the
OZ-331-restic
branch
from
November 19, 2024 09:07
20dbcd8
to
cc6ecb9
Compare
rbuisson
reviewed
Nov 22, 2024
rbuisson
requested changes
Nov 25, 2024
.env
Outdated
# Backup path for local restic repository | ||
BACKUP_PATH= | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove that last extra line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rbuisson done
rbuisson
approved these changes
Nov 26, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR introduces backup and restore support for Ozone powered by Restic and a custom wrapper project to allow us to use Docker Labels to enable backup and restore.
The project has two services ;
Backup and Restore when using the Ozone helper scripts
These instructions assume you are already in the Ozone Scripts directory --> see the start Documentation
Backup to Local Path
./start.sh
Backup to S3
To setup the S3 bucket and user following the instructions in the Restic docs
Export the required ENVs
Run the start script
./start.sh
Restoring
Restoring from Local path
Export the required ENVs
Run the start script
./start.sh
Restoring from S3
Export the required ENVs
Run the start script
./start.sh
Restic provides a rich set of features and a backup storage backend, but this PR supports only a small subset of the features and local path and S3 for the backup storage backend.
** Supported Configuration **
/restic-backups
,s3:s3.amazonaws.com/ozone-dev-backup
*/5 * * * *
RESTIC_REPOSITORY
is S3RESTIC_REPOSITORY
is S3RESTIC_REPOSITORY
is S3start.sh
helper script. It has to be set to trueexport RESTORE="true"
start.sh
export COMPOSE_PROFILES=openmrs-restore,odoo-restore
info
Ticket --> https://mekomsolutions.atlassian.net/browse/OZ-331