7.4.14. Dumping configurations to files/Loading configurations from files


<< Prev   Next >>

The standalone server allows you to dump and load a configuration to XML files. Dumping and loading are always executed in hierarchical format. Linear dump format is not supported by the standalone server. The standalone server supports both configuration dumping and loading options: full and partial.

To perform full dumping, use the following command:

ibcmd infobase config export --user=ibuser --password=123 --config=config.yml d:\cfg_xml

The following command allows you to synchronize the configuration and export directory:

ibcmd infobase config export --user=ibuser --password=123 --sync --config=config.yml d:\cfg_xml

Dump in the d:\cfg_xml directory is updated if:

  • The d:\cfg_xml directory contains the ConfigDumpInfo.xml file.
  • Root object UUIDs match in the configuration and in the ConfigDumpInfo.xml file.
  • Version numbers of XML dumping format match for the configuration and the ConfigDumpInfo.xml file.
  • In the d:\cfg_xml directory, dumping data is in hierarchical format.
  • Synchronization does not require full configuration dumping.

When importing, it automatically determines the format of the importable export. To fully import the configuration from the files, use the following command:

ibcmd infobase config import --user=ibuser --password=123 --config=config.yml d:\cfg_xml

It should be understood that this command will completely replace the configuration in the infobase, which is described by the config.yml configuration file.

To perform partial configuration loading, use the following command:

type d:\fileList.lst|ibcmd infobase config import files --user=ibuser --password=123 --http-base-dir d:\cfg_xml

Where:

  • Only files in the d:\fileList.lst file are imported.
  • The d:\fileList.lst file contains the list of full paths to files to be imported. One line contains a full path to one file.
  • The d:\cfg_xml directory contains a directory with exported data.

See also:

  • Export/import of configuration to files
  • Standalone server configuration file

<< Prev   Next >>

Icon/Social/001 Icon/Social/006 Icon/Social/005 Icon/Social/004 Icon/Social/002