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/js-export.sh –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
> ./jasper_init.sh
> cd ..
Finally, do the restore by running the following command:
> ./js-import.sh –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.