Export Configuration

Last modified 27 Oct 2025 12:30 +01:00

Export configuration command allows users to export selected configuration objects. The configuration export excludes:

  • Operational data

  • Metadata

  • Connector configuration in resources

  • Connector configuration in additional connector

  • Role membership ref

  • Admin gui configuration

  • Display and Item constraint from archetype

  • Extensions

From the System configuration object the only included items are:

  • Default object policy configuration

  • Model hooks

  • Correlation

From the Connector object it includes only these items:

  • Name

  • Available

You can also specify other items to exclude (-ei, --exclude-item). Object can be exported to SYSOUT or to file (-o, --output). You can also decide to export each object to individual file (-sf, --split-files). In that case the -o tells the destination directory. If -sf is specified, but the -o is not, then the files will be exported to /tmp/export-midpoint-config. Use -O, --overwrite switch if you wish to overwrite an existing output file/directory.

Note: this command is not supposed to run in multiple threads, therefore do not modify the default threading settings which is set to 1 by default (--multi-thread, -l options).

Example: export configuration into output.xml file
ninja.sh export-configuration --output output.xml
Example: export configuration into a directory with a separate file for each object
ninja.sh export-configuration --split-files --output output_directory
Example: exclude particular properties from the export
ninja.sh export-configuration --exclude-item description --output output.xml
Was this page helpful?
YES NO
Thanks for your feedback