Restoring all reports to Jasper Server

Sometimes it is necessary to restore an entire copy of Jasper Reports generic lipitor. This can only be done by first removing all of the existing entries in the Jasper Reports server to be restored to.

First, on the source machine, backup the entire Jasper Reports server by running the following commands:

> cd /home/jasper/jasperserver-3.5/scripts
> /home/jasper/jasperserver-pro-3.5/scripts/ –everything –output-dir /home/jasper/jasperserver-pro-3.5/scripts/js-export.$HOSTNAME.`date +\%y\%m\%d`

Then copy the backup directory to the destination machine:

> scp -pr /home/jasper/jasperserver-pro-3.5/scripts/js-export.$HOSTNAME.`date +\%y\%m\%d` destinationMachine:/home/jasper/jasperserver-pro-3.5/scripts

Now, on the destination Jasper Server, run the following commands:

> cd ~/jasperserver-3.5/scripts/mysql
> ./
> cd ..

Finally, do the restore by running the following command:

> ./ –input-dir js-export.<TheHostNameOfTheSourceMachine>.`date +\%y\%m\%d`

Now just be sure to update your Data Sources in the Jasper web site on the destination machine.