Open gitcatpeter opened 7 hours ago
Yes, there is the Resource Sync to help with this. Lets say you want to set up Komodo again with a new database backend:
The high level steps will be:
Specifics:
To start, note that you cannot export either Users or Git / Docker Providers, lets deal with that first.
For Users, they will have to recreate their account and onboard again. You will lose any specific Permissions attached to Users if you delete the database data. The solution is to migrate all user specific permissions to User Groups which can be included in Resource Toml: https://komo.do/docs/sync-resources#user-group. Non-admin users just need to create their users again with the same username. Admin users can use any username / have no restrictions.
For the Git / Docker Providers, move them all to the core.config.toml
: https://github.com/mbecker20/komodo/blob/main/config/core.config.toml#L397. Either this, or you must re-add them via the UI.
The settings for Komodo itself are in the config files (compose.yaml
, compose.env
, core.config.toml
). Just copy these somewhere safe to backup if the server is being formatted.
For the Resources, everything is in the TOML files. Export them before taking down Komodo.
Assuming all your user permissions are moved to User Groups, and your Git / Docker Providers are in your core.config.toml
, you can follow the below steps.
Toml
export button. Copy the contents.Sync
, choose UI Defined, and paste in your Resource Toml you copied before.Let me know how it works out 🦎
Thank you for that detailed instruction! I'm going to try it asap.
What is your experience or recommendation for a backend DB for Komodo. We're talking about a homelab with ~200 docker stacks.
Have you seen any issues with ferret+postgres? That additional translation layer could potentially cause issues. Is my decision to go back to MongoDB warranted?
Is there any way to backup and export Komodo core settings? Like all server configs, stacks and so on... How much is kept in TOML and how much can be dumped from a DB. And then restore to a vanilla install?
Second part of that question is changing DB type e.g. postgres -> mongo. Is there a way to somehow convert DB dump or something?
I had unexplained postgres failure and even though it eventually recovered I lost some confidence in it (latest Komodo, latest postgres and ferret). Which is strange. because for years postgres has been rock-solid for me.