bin/ninja.sh -v export -r -O export.xml
Migration to Native PostgreSQL Repository
Since 4.4This functionality is available since version 4.4.
Since changes in schema are too large to be handled by SQL update, or you may be switch to PostgreSQL database, you must export and reimport all your data.
In short the migration process should be:
Upgrading midPoint to 4.4 using your original SQL configuration
Exporting your existing data to file system using Ninja
Initializing Native PostgreSQL repository
Changing midPoint configuration to use native PostgreSQL Repository
Importing your existing data to native PostgreSQL Repository using Ninja
Starting midPoint with new configuration
Exporting your existing data to file
We need to export existing data in raw mode, so they can be later reimported into new native PostgreSQL repository using same tool (ninja).
In terminal, go to your midPoint installation directory and execute:
|See ninja for more export configuration options and their meaning|
Initializing & changing configuration for native PostgreSQL repository
See Native PostgreSQL Repository for installation and configuration of native PostgreSQL repository.
Please backup your
|Do not start midPoint after configuration changes performed in usage documentation.|
Importing your existing data to repository
Once export is successful and configuration changes were made, we may proceed with importing data to new native PostgreSQL repository.
In terminal, navigate to your midPoint installation directory and execute:
bin/ninja.sh -v import -i export.xml
|See ninja for more import configuration options and their meaning|
4. Starting midPoint
If import was successful, you are now able to start midPoint using new repository.