Develop > Tailoring > Implementing version control for your tailoring > Parameters to import and export files

Parameters to import and export files

The version control command line tool provides you the following parameters to import and export specific files. In Service Manager, a file is equivalent to a Relational Database Management System (RDBMS) table. For more information, see File.

Parameters to export files

To export Service Manager files, you can run the sm -svc_export command with the following parameters, or add the following parameters in the sm.ini file.

Parameter Description
svc_files

Specifies a list of files to export. Use commas to separate multiple files (no space before or after a comma). Service Manager exports all files in the system if the parameter is not set.

svc_excludefiles Specifies a list of files that you want to exclude from the export operation. Use commas to separate multiple files (no space before or after a comma).

For example, if you want to export ScriptLibrary and formatctrl data only , add the following line in sm.ini:

svc_files:ScriptLibrary,formatctrl

Parameters to import files

To import Service Manager files, you can run the sm -svc_import command with the following parameters, or add the following parameters in the sm.ini file.

Parameter Description
svc_cleanbuild If the value of this parameter is set to 1, all the files in the svc_rootdir directory are imported; if the value of this parameter is set to 0 or not set, the list of files to import is determined by the svc_files parameter.
svc_files

Specifies a list of files to import. Use commas to separate multiple files (no space before or after a comma).

Note This parameter works only if the svc_cleanbuild parameter is set to 0 or not set.

svc_excludefiles Specifies the list of files that is excluded in the importing operation. Use commas to separate multiple files (no space before or after a comma).

For example, if you want to import only records in the ScriptLibrary and formatctrl folders under the svc_root directory, add the following lines in sm.ini:

svc_cleanbuild:0 
svc_files:ScriptLibrary,formatctrl