Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Import-JS7InventoryItem [-FilePath] <String> [[-ArchiveFormatFormat] <String>] [[-FolderTargetFolder] <String>] [-Overwrite] [[-AuditComment] <String>] [[-AuditTimeSpent] <Int32>] [[-AuditTicketLink] <Uri>] [<CommonParameters>]

...

JOC Cockpit inventory items can be exported with the Export-JS7InventoryItem cmdlet. The archive file
created by the cmdlet can be imported by use of this cmdlet. This offers a mechanism to backup and to
restore inventory data, e.g. in case of switching the DBMS for JOC Cockpit or when upgrading to newer
JS7 releases.

Consider that this cmdlet requires PowerShell version 6.0 or newer.

PARAMETERS

FilePath

-FilePath <String>
Specifies the path to the archive file that includes objects for import to the JOC Cockpit inventory.

Required?true
Position?1
Default value
Accept pipeline input?true (ByPropertyName)
Accept wildcard characters?false

...

Format

-ArchiveFormat Format <String>
Specifies the type of the archive file that will be imported: ZIP, TAR.GZ.

Required?false
Position?2
Default valueZIP
Accept pipeline input?true (ByPropertyName)
Accept wildcard characters?false

...

TargetFolder

-Folder TargetFolder <String>
Optionally specifies the folder in the JOC Cockpit inventory to which imported objects paths should be added.

Without this parameter any folders as specified with the import file will be used.
New folders are automatically created and optionally existing folders will be overwritten.

...

Imports any objects included with the import file ( "export.zip"). Objects existing with the same path in the JOC Cockpit inventory will not be overwritten.

...

PS > Import-JS7InventoryItem -Folder /some_folder -FilePath /tmp/export.tar.gz -ArchiveFormat Format TAR.GZ -Overwrite

Imports any objects from the given import file. As a compressed tar file is used the respective archive format is specified. Objects are added to the path /some_folder such as e.g. an object /myPath/myWorkflow that will be added to the path /some_folder/myPath/myWorkflow. Any objects existing with the same path in the JOC Cockpit inventory will be overwritten.