Upgrading to separate databases for KPI and KoBoCAT

You could update your kobo-docker setup manually and then split the Postgres database using the same script that kobo-install executes: kobo-docker/postgres/primary/clone_data_from_kc_to_kpi.sh at master · kobotoolbox/kobo-docker · GitHub. You’d need to first pull the latest updates to kobo-docker from GitHub, then update the configuration (crucially, specifying a new database name for KPI), then run that script.

Alternatively, you could:

  1. clone the shared-database-obsolete branch of kobo-install;
    • to avoid conflicts with your existing installation, do not put clone kobo-install alongside your existing kobo-docker directory;
  2. set up kobo-install “from scratch” (setting everything to match your current install);
  3. let it start up empty of data, and make sure it works;
  4. STOP ALL CONTAINERS (both new and old);
  5. kobo-install will have created a new kobo-docker directory. inside it, rename .vols to something else;
  6. copy your old kobo-docker/.vols to the new kobo-docker directory;
  7. start kobo-install again; make sure it works;
  8. follow the instructions in the first post of this thread, beginning with

    Enter the kobo-install directory:

Whatever you do, make sure you take backups first. We’d like to help but are very busy with running our own instances and maintaining the software, so we cannot guarantee timely responses if you have trouble.

2 Likes