Migrating a custo diagnostic Windows installation to a custo diagnostic macOS installation is possible if the custo diagnostic Windows installation runs on MariaDB.
Prerequisites
- The custo diagnostic server on Windows system is running without errors.
- The custo diagnostic server on the macOS system is installed and running.
- Both systems are using MariaDB as DB system in custo diagnostic.
Migrating
- First create a database backup by running the database backup task:
- Wait a few minutes until the backup is complete. You'll now find a current .sql file in the "diagserverdata\backup" subdirectory:
- It's a good idea to copy the file name into a text editor, as you'll need it later.
- Next, copy the folders "backup", "blood pressure", "ecg", "ext", "lufu", "lzekg", "manuals" and "reha" (if available) from the Windows system to the directory '/Library/Application Support/custo med/custodiagnosticserver' on the macOS system.
Please note: Do not copy the whole "mariadb" directory under any circumstances. - Next, import the SQL backup into the MySQL DB server using the following command:
sudo /Library/custodiagnosticserver/mysql/bin/mysql --defaults-extra-file='/Library/Application Support/custo med/custodiagnosticserver/database/secrets/root@localhost.cnf' diagdb < "/Library/Application Support/custo med/custodiagnosticserver/backup/2025-04-08_16_32.db.backup.sql"
Please note: replace "2025-04-08_16_32.db.backup.sql" with the filename of the newly created backup file. - After the import has finished the custo diagnostic server must be restarted in System Preferences > custo diagnostic.
- Please check that the custo diagnostic server is working correctly (e.g. by opening some reports in the client).