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
Backup regularly the database #470
Comments
We need a solution which could be easily deployed for our other online statefull services. A Docker image which would be easily configurable via environment variables would be the best. We could call it the "borg-companion". I think we could do that using a custom Docker image:
To use the borg-companion we would need:
@m3nu Does that sounds doable? You might have heard about solution already existing which do that? |
Thanks for the shoutout. 👋 The plan sounds reasonable. If you keep the private SSH key in Bitwarden, it would be quite simple really. One would just have to write the config to a Borgmatic template and be done. The Docker setup steps would be similar to the Ansible role we offer to set up Borgmatic on real servers. The Dockerfile would be like this:
One thing to consider is Borg's cache in Stretch goal: If you have a lot of backups to do, you could use the BorgBase API to create more repos on the fly and assign the correct keys. This would need a small Python client in the Docker image. |
I didn't look into the precise use case yet and don't know much about Bitwarden, but for everything Docker and Borg, I'm happy to help with setup and testing. |
@m3nu Thank you very much for your extended feedback. Hopefully we will be able to do that in the next months ans share the result with the rest of the borg community. |
Someone has done a first step in that direction here https://github.com/rubenbe/borgbase-docker/ |
I have started a POC at https://github.com/kiwix/maintenance/tree/master/backup-docker |
This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions. |
@m3nu We have a first version running of this "backup-companion" at https://github.com/kiwix/borg-backup. Feedbacks welcome. |
Interesting. Especially the use of Bitwarden to keep secrets. Will try to run it in Docker. |
This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions. |
@rgaudin Coukd we close this ticket? |
sure |
We need to backup our Zimfarm database. This should:
The text was updated successfully, but these errors were encountered: