In addition to that, also the description for the import is wrong regarding this warning:
You can import parts. For example a report. But do not export the report from Advanced Reporting, export it from Jaspersoft UI. Then the zip file starts at org level.
------------------------------
Senior Technical Consultant
Fujitsu Technology Solutions GmbH
Germany
------------------------------
Original Message:
Sent: Mar 13, 2024 04:26 AM
From: Uwe Kerntopf
Subject: Export Jaspersoft content from command line
Hello together,
We want to export the content from a Jaspersoft instance via command line using the "admin jaspersoft export" command.
According to the syntax in the guide it should look like as:
admin jaspersoft export [-orgName t1,t2,t3,..., tn] [-fileName zipfile name] [-includePublic=true]|[-includeServerSettings=true] -fromUserName <superuser> -fromPassword <superuser_password> -fromUrl <JSURL> -allOrgs -properties -overwrite
in our case:
admin jaspersoft export -orgName {our-org-name} -fileName content.zip -fromUserName superuser -fromPassword [superuser-pwd} -fromUrl http://server:port/reportservice
But nothing starts, it returns only
usage: jaspersoft export [-properties propertiesFile] [-overwrite]
[-orgName orgId1,<orgId2>,..]] [-includePublic] -fromUserName username
-fromPassword password [-includeServerSettings] [-allOrgs] -fileName
contentFile -fromURL jsSrcUrl
-allOrgs Export all tenants
-fileName <contentFile> Content file name
-fromPassword <password> Source Jaspersoft user password
-fromURL <jsSrcUrl> Jaspersoft Source URL
-fromUserName <username> Source Jaspersoft user name
-includePublic Include public folders
-includeServerSettings Include Server Settings
-orgName <orgId1,<orgId2>,..]> Jaspersoft organization mappings
-overwrite Overwrite on import/export/migrate
-properties <propertiesFile> Properties file name
We see, that there is a difference between guide and usage message for the URL-Parameter!
Then tried:
admin jaspersoft export -orgName {our-org-name} -fileName content.zip -fromUserName superuser -fromPassword [superuser-pwd} -fromURL http://server:port/reportservice
That worked, but content.zip was not found in current folder, it landed in the lib folder of Clarity!
With
admin jaspersoft export -orgName {our-org-name} -fileName ./content.zip -fromUserName superuser -fromPassword [superuser-pwd} -fromURL http://server:port/reportservice
file was found in actual folder!
Or you give the zip-file fully qualified (we are on Linux).
The same with the "admin jaspersoft import" command.
I have looked at guides from earlier versions, same faulty description for many years ..
Bye
Uwe
------------------------------
Senior Technical Consultant
Fujitsu Technology Solutions GmbH
Germany
------------------------------