Overview

In this section we will perform several procedures with jasper reports and observer several situations.

Export/Import

Requirements

Before we start, be sure to install ANT package:

Install ANT

Otherwise, you will recieve the following error:

Without ANT

And be sure to run the command from the script's location (e.g. /opt/jasperreports-server-7.9.0/buildomatic/ in my case)

Sometimes, when we migrate a jasper server, we will want to export our reports and schedules. To do that, we can use either:

Web interface

Command line

Let's do it with Command Line:

Export From 7.5

From 7.5, we have to include secret key, keyalias and keypass, if we wish to migrate data between Jasper Servers:

We can export all content as follows:

Export

That command will export all the content: roles, reports, users, etc. and it will generate also secret key and key alias, which you need to use during the import:

Now to import it back, use the following command:

Import

Both of these scripts are located at:

Windows:

<js-install>\buildomatic\js-import.bat

<js-install>\buildomatic\js-export.bat

Linux:

<js-install>/buildomatic/js-import.sh

<js-install>/buildomatic/js-export.sh