CLI

export

export [option] [menu]
The "export" command exports all objects of the specified menu/submenu
and all underlying submenus. This allows you to export a configuration or a part of
the configuration for backup purposes or in order to import it on another system
(using the "import" command).

"export" can generate the configuration data in many different output formats:

If no file is specified, "export" will write the data structure to standard out.
NameValueDescriptionExample
xmlexport the configuration in XML format
jsonuse JSON as the export format for the configuration data
csvexport the configuration in CSV format (comma-separated-value)
csv-no-dataexport only the submenus and parameter names in CSV format (no values)
normaluse the human readable standard format
treeexport only the submenus and parameter names as a tree (no values)
capabilitiesexport with capabilities
capabilities-rwuse with capabilities where ro-objects only shows its data
dataexport with data (--capabilities in json only)
rawprints enums as value instead of names
not-rawalways prints enums as names
tableexport menu as a table (useful on list-like menus)
xtableexport menu as a table and swaps rows with columns
use-unitinclude units if available
no-unitdo not include units
outputfilepathexport the content into a filemyoutput.json
menu/status/system
See also:
import: reads a previously exported data structure into the system configuration.

REST-API Support:


This command is not supported.