How to take the backup of jasperreport server?

Using these export and import utilities you can take the backup of Jasper server.
It will be very helpful if you are uninstalling Jasper server and wants to install newer version of jasper server or if you are trying to duplicate the Jasper instance in another machine, So you do not need to create again all the reports from starting.

There are two batch file in Buildomatic directory of Jasper server.

1. export.bat (js-export.sh for Linux) which takes the backup of Jasper server.

2. import.bat (js-import.sh for Linux) which import all the backup files of Jasper server.

means using these two batch files you can import all the reports of jasper server to another instance of Jasper server.

How to run js-export.bat file:-

Go to the command prompt and find the path of Buildomatic directory in Jasper Server.
1: If you want to take the whole Jasper server repository backup

For windows machine : –

<js-install directory>buildomatic>js-export.bat –everything –output-zip backup.zip

For linux machine : –

<js-install directory>/buildomatic>sh js-export.sh –everything –output-zip backup.zip

2: If you want to take the backup of any specific directory

For windows machine : –

<js-install directory>buildomatic>js-export.bat –output-zip backup.zip –uris /Resource_id_of_directory

For linux machine : –

<js-install directory>buildomatic>sh js-export.sh –output-zip backup.zip –uris /Resource_id_of_directory

(How to find the Resource id of any directory:-
Right click on the any directory of the jasper server repository and select property and find the “Resource Id”)

3:  You can also take backup of any specific report

<js-install directory>buildomatic>js-export.bat –output-zip backup.zip –uris /Resource_id_of_report

Resource id of the report:- Resource id is always written in red color when you open any report

All the backup files will generate inside the buildomatic directory of Jasper server.

How to run js-import.bat file:-

Go to the command prompt and find the path of Buildomatic directory in Jasper Server.

For windows machine : –

<js-install directory>buildomatic>js-import.bat  –input-zip backup.zip

For linux machine : –

<js-install directory>buildomatic>sh js-import.sh  –input-zip backup.zip

It will create the whole Jasper server repository on your Jasper serve, but if the directories are already existing it will not update those directory, so delete the directory from jasper server and run the import command.

Fuente:

http://passionfordata.blogspot.com/2012/04/how-to-take-backup-of-jasperreport.html

Publicado el 27 octubre, 2016 en jaspersoft. Añade a favoritos el enlace permanente. Deja un comentario.

Responder

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Cerrar sesión / Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión / Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión / Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión / Cambiar )

Conectando a %s

A %d blogueros les gusta esto: