snehalata_d Posted August 27, 2010 Share Posted August 27, 2010 I am using following command for exporting --C:\Program Files\jasperserver-pro-3.7\scripts>js-export --uris /organizations/organization_1/reports/samples/AllAccounts --output-zip myExport.zipExporting repository resource /organizations/organization_1/reports/samples/AllAccountsExporting repository resource /organizations/organization_1/datasources/JServerJNDIDSExporting repository resource /organizations/organization_1/images/JRLogoWhile importing I used following commandC:\Program Files\jasperserver-pro-3.7\scripts>js-import --input-zip C:\Users\ugupte\Desktop\myExport.zip --prepend-path /organizations/organization_1/AllDirand got the following output on command prompt.Creating repository folder /organizations/organization_1/AllDirCreated repository folder /organizations/organization_1/AllDir/organizationsCreated repository folder /organizations/organization_1/AllDir/organizations/organization_1Created repository folder /organizations/organization_1/AllDir/organizations/organization_1/reportsCreated repository folder /organizations/organization_1/AllDir/organizations/organization_1/reports/samplesCreated repository folder /organizations/organization_1/AllDir/organizations/organization_1/datasourcesImported resource /organizations/organization_1/AllDir/organizations/organization_1/datasources/JServerJNDIDSCreated repository folder /organizations/organization_1/AllDir/organizations/organization_1/imagesImported resource /organizations/organization_1/AllDir/organizations/organization_1/images/JRLogoImported resource /organizations/organization_1/AllDir/organizations/organization_1/reports/samples/AllAccountsBut with this command AllDir folder is created in JasperServer and in that again folders for organizations,organization_1,reports and samples are created.I want the following structure to be created on JasperServer/AllDir/reports/samplesPlease can anyone help me with this?Regards,Snehalata Link to comment Share on other sites More sharing options...
tkavanagh Posted August 30, 2010 Share Posted August 30, 2010 The prepend-path you specified /organizations/organization_1/AllDir will create these folders off of the root folder (as we can see from the output of the command). If you want to create the folder structure: /AllDir/reports/samplesThen you can go into the JasperServer UI and create that folder structure. But I'm not sure I understand the question. Link to comment Share on other sites More sharing options...
snehalata_d Posted October 22, 2010 Author Share Posted October 22, 2010 According to the JasperServer Admin Guide,the prepend path option works as follows."Import the myDir catalog folder, prepending /importDir to all repository URIs:js-import --input-dir myDir --prepend-path /importDirFor example, the folder /reports in the export catalog is imported to /importDir/reports."But in my case .when I import using above import command ,the folder /reports in the export catalog gets imported to /importDir/organizations/organization_1/reports.But I want it to be imported like this : /importDir/reportsHow to fix this problem?Thanks in advance Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now