The Repository Export utility writes out all of the
JasperServer Repository objects to a set of XML and binary format files.
The output of the export operation is known as an export
catalog.
To create the export catalog,
enter these commands: cd
<js-install>/scripts
js-export.bat --everything --output-dir js-backup-catalog
OR
Exporting Everything......
C:\Program Files\jasperserver-3.1\scripts> js-export.bat --everything --output-dir js-backup-catalog
Export /Reports Folder Contents
C:\Program Files\jasperserver-3.1\scripts>js-export --uris /Reports --output-dir js-backup-catalog
The import utility reloads all of your repository data. As
the data is being saved to the repository,
To import your backup catalog to the repository,
change directory to:
cd <js-install>/scripts
Enter these commands: js-import.bat
--input-dir js-backup-catalog
Copy & paste the exported folder(js-backup-catalog) into the following path(new system) C:\Program
Files\jasperserver-3.1\scripts>
Importing Files to jasper server.........
C:\Program Files\jasperserver-3.1\scripts>js-import.bat --input-dir js-backup-catalog
Importing Files to jasper server.........
C:\Program Files\jasperserver-3.1\scripts>js-import.bat --input-dir js-backup-catalog
Works Only in Windows XP not in Windows 2000
Examples:
·
Import the myDir catalog
folder, prepending /importDir to all repository URIs:
js-import --input-dir myDir --prepend-path /importDir
·
Import the myExport.zip catalog
archive file:
js-import --input-zip myExport.zip
Examples:
·
Export
the /reports/samples/AllAccounts resource to a catalog folder:
js-export --uris
/reports/samples/AllAccounts --output-dir myExport
· Export
the /images and /fonts folders:
js-export --uris /images,/fonts
--output-dir myExport
· Export
all the resources with permissions to a zip catalog:
js-export --uris /
--repository-permissions --output-zip myExport.zip
· Export
all the resource and all the report jobs:
js-export --uris / --report-jobs /
--output-dir myExport
· Export
the report jobs of the /reports/samples/AllAccounts report unit
js-export --report-jobs
/reports/samples/AllAccounts --output-dir myExport
· Export
all the roles and users:
js-export --roles --users --output-dir
myExport
· Export
the ROLE_USER and ROLE_ADMINISTRATOR roles along with all users
belonging to one of these roles:
js-export --roles ROLE_USER,
ROLE_ADMINISTRATOR --role-users --output- dir myExport
Export two users:
js-export --users jasperadmin,
joeuser--output-dir myExport
It could be useful a option like "--delete"
for the command "js-import" to remove useless
resources from repository:
js-import --delete --input-zip=myReports.zip
1 comment:
I have taken backup of All the jasper server. Thanks a lot
Amit Kukadiya
Post a Comment