vcexport
usage: vcexport [options]
Options
Options | Description |
---|---|
[-d, --directory] | Use this option to specify in which directory you want to place the exported data. If the directory does not exist, it will be created. |
[-es, --excludesysdata] | Use this option to exclude system data from the export. For example, you can exclude ECS related data, event categories, and workflow alarm values. |
[-f, --folders] | Use this option to specify which folders you want to include in the export. For example, |
[-im, --includemeta] | Use this option to include meta data in the export. This will not be done by default, since not including meta data will make it easier to make a file compare between the exports. |
[-o, --overwrite] | Use this option to enable existing exports in the stated directory to be overwritten. |
This command exports configurations in a format that is adapted for version control systems. The vcexport
command exports the configurations into a flat structure, i e with file extensions instead of directories. For each exported configuration, a .xsd
file will be generated in which the structure of the data is stored, which will produce a more compact format than the other export commands can offer.
Return Codes
Listed below are the different return codes for the vcexport
command:
Code | Description |
---|---|
0 | Will be returned if the export was successful. |
1 | Will be returned if the command could not be interpreted, e g if a option that does not exist has been entered. |
2 | Will be returned if the export failed. |
3 | Will be returned if the folder you want to export to, stated with the -d, --directory option, could not be created. |
5 | Will be returned if the folder(s) stated, when using the -f, --folders option, does not exist. |