RESTORING POLICY INFORMATION
Once you have policy.wsdb file and the broker service token from the source server, then you can transfer your policies to another v7.x Websense installation.
The restore process imports only your policies (clients, policies, filters, and admins) to the destination server. It is recommended to back up the destination server's policy information prior to doing a restore. The restore replaces the default WebsenseAdministrator password, so ensure you know the password from the source server.
To restore your policies, complete the following steps on the destination server:
Once you have policy.wsdb file and the broker service token from the source server, then you can transfer your policies to another v7.x Websense installation.
The restore process imports only your policies (clients, policies, filters, and admins) to the destination server. It is recommended to back up the destination server's policy information prior to doing a restore. The restore replaces the default WebsenseAdministrator password, so ensure you know the password from the source server.
To restore your policies, complete the following steps on the destination server:
-
From the Websense bin directory, back up the existing policy database:
- Windows: PgSetup --save 7x.backup_policy_db
- Linux: ./PgSetup --save 7x.backup_policy_db
- Store the backup file, generated in step one, in a safe location.
- Stop all Websense services.
- Move the policy.wsdb file (created on the source server) into the Websense bin directory on the destination server.
-
From the Websense bin directory, restore the policy database by running:
- Windows: PgSetup --restore policy.wsdb
- Linux: ./PgSetup --restore policy.wsdb
-
If you are migrating your policy database to a later Websense version, then from the Websense bin directory, run the following additional command:
- Windows: PgSetup --upgrade
- Linux: ./PgSetup --upgrade
-
Delete or rename the following two files from the Websense bin directory:
- config.xml.bak
- journal.dat
-
Synchronize the config.xml password with policy database.
- From the Websense bin directory, open the config.xml file and search for the word "token" including the quotes.
- Replace the token value (the long string of numbers) with the saved token from the source installation server's config.xml file.
- Save and close config.xml file.
- Restart all Websense Services.