JReport Server resources such as catalogs, reports, users, security, scheduling, etc. can be migrated from one computer to another by simply Backing up and Restoring the Server Database.
To migrate JReport Server from the development environment on computer A to the production environment on computer B, you need to back up the server database data on computer A, move the backup files to computer B, and then restore the backup data to the server on computer B. You cannot migrate from one platform to another, for examples Windows to Linux or Linux to Windows.
The following example is based on Windows:
<server_install_root>\bin
on computer A. In a DOS window, switch to the <server_install_root>\bin
folder and run the following commands:
DBMaintain -Bsystemtables:C:\temp\systemtables.dat -Brealmtables:C:\temp\realmtables.dat -Bprofiling:C:\temp\profiling.dat
Backing up the system database: on the JReport Administration page, click Data > System DB on the system toolbar. Then go to the Backup tab, specify a file location and click the Backup button.
Backing up the realm database: on the JReport Administration page, click Data > Realm DB. Then go to the Backup tab, specify a file location, check With External Data, then click the Backup button. In order to make resources usable you must backup the files with external data. If With External Data is unchecked, your resources will be visible in the server resource tree of the new server but none of the physical files will be in the history folder of the new server so they will fail with file not found errors.
Backing up the profiling database: on the JReport Administration page, click Data > Profiling DB. Then go to the Backup tab, specify a file location and click the Backup button. Normally it would not be necessary to backup and restore the profiling database as it only contains records about reports run on the current server, which may not be useful on the new server.
D:\systemtables.dat
D:\realmtables.dat
D:\profiling.dat
<server_install_root>\bin
on computer B. In a DOS window switch to the <server_install_root>\bin
folder, and then run the following commands:
DBMaintain -Rrealmtables:D:\realmtables.dat -Rprofiling:D:\profiling.dat -Rsystemtables:D:\systemtables.dat