Scroll to navigation

md_doc_help_kdb-convert(3elektra) Elektra md_doc_help_kdb-convert(3elektra)


md_doc_help_kdb-convert - kdb-convert(1) -- Convert configuration files using elektra kdb convert [<import-format>] [<export-format>] [<import-file>] [export-file]


This command allows a user to convert a file from any format supported by Elektra to any other supported format.

This command relies on the functionality of Elektra but does not actually modify the key database in any way.

This command uses plugins to specify and convert between formats, it is only limited by the plugins available for Elektra.


Where import-format is the format that the current configuration file is using, export-format is the format the user wishes to convert it to, import-file is the full path to the current configration file, and export-file is where the converted configuration file should be saved.

If either import-format or export-format is not specified, the dump format will be used instead. If either import-file or export-file are not specified, stdin and stdout are used respectively.


  • -H, --help: Show the man page.
  • -V, --version: Print version info.
  • -v, --verbose: Explain what is happening.


To convert an Elektra dump file to xml: cat sw.ecf | kdb convert dump xmltool > sw.xml

Another way to convert an Elektra dump file to xml: kdb convert dump xmltool /home/user/dump_file.ecf /home/user/xml_file.xml

To print an xml file using the line format: cat ../tests/xml_file.xml | kdb convert xmltool line Note that this command won't save the output, it will just diplay it to stdout.

Sun May 29 2016 Version 0.8.14