mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-03-02 22:57:00 -05:00
[Help] Possible to auto import a backup on container startup? #530
Labels
No labels
A:accessibility
A:api
A:cert-expiry
A:core
A:dashboard
A:deployment
A:documentation
A:domain expiry
A:incidents
A:maintenance
A:metrics
A:monitor
A:notifications
A:reports
A:settings
A:status-page
A:ui/ux
A:user-management
Stale
ai-slop
blocked
blocked-upstream
bug
cannot-reproduce
dependencies
discussion
duplicate
feature-request
feature-request
good first issue
hacktoberfest
help
help wanted
house keeping
invalid
invalid-format
invalid-format
question
releaseblocker 🚨
security
spam
type:enhance-existing
type:new
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/uptime-kuma#530
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @troodes on GitHub (Nov 4, 2021).
⚠️ Please verify that this bug has NOT been raised before.
🛡️ Security Policy
📝 Describe your problem
Great tool, love the simplicity of it.
I'm wondering if there is a way to have the app restore the settings from a backed up .json file on docker startup?Perhaps by mounting the .json backup to a specific location and having the app restore it at startup?
My use case is I'd like to create a bunch of canned monitor .json configs to use, and then fire up the docker container pointing at one of them in order to avoid having to use the UI to manually create them all, or import the backup settings. My monitor hosts change dynamically, so it'd be useful to be able to generate the settings .json ahead of time and load it at startup.
Alternatively, is there a way to trigger the "Import Backup" remotely, instead of using the GUI?
Thanks!
🐻 Uptime-Kuma Version
1.10.0
💻 Operating System and Arch
RHEL
🌐 Browser
Google Chrome
🐋 Docker Version
20
🟩 NodeJS Version
Using Docker
@gaby commented on GitHub (Nov 4, 2021):
👍🏻 for this feature, it would be very useful for stateless deployments.
@deefdragon commented on GitHub (Nov 5, 2021):
Likely a duplicate of #270
I really do think providing the option of loading in a config/backup on startup should at-least be re-considered. Based on the Project Styles, it sounds like Louis wants UK to be as easy as possible to use and deploy. I really don't think that adding the option to load a config/backup in via a file would mean any more difficult for users, while enabling some cool stuff like stateless deployments, or potentially making a custom startup script to generate the backup.
@louislam commented on GitHub (Nov 5, 2021):
Supports both ways (config file + config from web ui) are super difficult in my opinion, it would increase the complexity of Uptime Kuma and hard to maintain in the future.
Also it is against my project style:
https://github.com/louislam/uptime-kuma/blob/master/CONTRIBUTING.md#project-styles
So it won't happen.
Alternative, you can:
docker commit.@deefdragon commented on GitHub (Nov 5, 2021):
I seriously believe you are shooting the project in the foot, but very well. I shall not bring it up again.
@troodes commented on GitHub (Nov 5, 2021):
Yup, definitely a dup of #270 , thanks for pointing that out.
@louislam , thanks for the reply and suggested alternatives.