-
Notifications
You must be signed in to change notification settings - Fork 269
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
Add backup cronjobs #542
base: main
Are you sure you want to change the base?
Add backup cronjobs #542
Conversation
4ac15de
to
a9cdba4
Compare
Cool idea, I hope to be able to review it soon. |
90da449
to
97f9875
Compare
This needs a rebase, but I also think we should include setting maintenance mode on before the restic example and turning it off after it's done. |
Oops. Forgot about this. I’ll do the rebase today. Not sure about maintenance mode … I’d prefer to leave the system online and do a file scan after restore. |
maintenance mode is recommended to be on during backups: https://docs.nextcloud.com/server/latest/admin_manual/maintenance/backup.html |
Signed-off-by: Stephan Austermühle <[email protected]>
Signed-off-by: Stephan Austermühle <[email protected]>
Signed-off-by: Stephan Austermühle <[email protected]>
Signed-off-by: Stephan Austermühle <[email protected]>
Signed-off-by: Stephan Austermühle <[email protected]>
Signed-off-by: Stephan Austermühle <[email protected]>
Signed-off-by: Stephan Austermühle <[email protected]>
Signed-off-by: Stephan Austermühle <[email protected]>
7f7d15e
to
ac6209e
Compare
@jessebot For me, the only feasible way seems to be to mount the While Kubernetes has init containers (enter backup mode), it does not have the concept of "exit containers" (leave backup mode). Also, lifecycle hooks are not an option because Kubernetes does not guarantee their execution time. Thoughts? |
Actually, the way I do this is via just having Kubernetes CronJobs for just the maintenance mode being turned on and off, and then I use a k8up |
There are probably more reliable approaches than relying on wall-clock-based synchronization. It either reduces service availability or toggles the switch too early.
My preferred option is to use logging and continuous WAL archiving as provided by the Zalando Postgres Operator (uses wal-e or wal-g under the covers), allowing you to restore the database consistently into any point in time.
Let's be agnostic about the backup tool. People will probably use a wide variety of backup solutions and technologies. |
Pull Request
Description of the change
Allow creation of Kubernetes Cronjobs for periodic backups of the Nextcloud data volume.
Benefits
The PR provides a standard method of installing backup cronjobs. It uses the Helm chart's configuration data to share the configuration.
Possible drawbacks
I have yet to be aware of any drawbacks.
Applicable issues
N/A
Additional information
Checklist
Chart.yaml
according to semver.