### Archiving and restoring server data

#### Archiving server data

Along with the running of the server, the sizes of the result version table (DB: systables) and TaskContext table (DB: profiling) grow larger. JReport Enterprise Server allows you to archive data to a single backup file. You can then retrieve the data from the backup file at a later date.

To archive the server data:

1. On the system toolbar of the JReport Administration page, click Data.
2. Select a realm from the Select Realm drop-down list.
3. Click the System DB/Profiling DB tab.

   Note: The Profiling DB tab is not shown by default. To show this tab, set the server.profiling.enable property to true in the server.properties file in the `<install_root>\bin` directory.

4. Switch to the Archive sub tab.
5. Specify a date in the Move to Archive data before field, and then type or use the Browse button to specify the file path and name.

   If you don't want to backup the archived server data, leave this field blank. The server data will then be removed from the database.

6. Click Archive. Server data prior to the date specified will be archived and saved to the backup file using the name specified.

#### Restoring the archived server data

You can restore server data that has been archived from a backup file. You can only restore it using the server user interface.

To restore the archived server data:

1. On the system toolbar of the JReport Administration page, click Data.
2. Select a realm from the Select Realm drop-down list.
3. Click the System DB/Profiling DB tab.
4. Switch to the Archive sub tab.
5. Type or use the Browse button to provide the archive file name and location in the Restore from archive field, and then click Restore.