Go to the table of contents Go to the previous page Go to the next page View or print as PDF
Backup and Restore FAQ : How do I back up and restore web protection software?
How do I back up and restore web protection software?
Topic 51238 | Backup and Restore | Web Protection Solutions | 12-Oct-2015
Use the Websense Backup Utility to back up your TRITON AP-WEB or Web Filter & Security software settings and policy data, and to revert to a previous configuration.
*
*
*
*
*
Running the Backup Utility on Windows or Linux
As a best practice, run the backup process on all machines with web protection components within a 30 minute time window. This may include:
*
*
Note that on the management server, you need to run both the Backup Utility for your web protection product, as described in this section, and the backup procedure for the TRITON infrastructure components, as described in How do I back up and restore the TRITON infrastructure?.
*
When restoring a previous configuration, restore all machines using backup files created in the same 30 minute window.
To run the Backup Utility on your Windows or Linux servers (excluding machines that host Content Gateway):
1.
2.
*
(Windows) Navigate to the Websense bin directory (C:\Program Files or Program Files (x86)\Websense\Web Security\bin\).
*
(Linux) Navigate to the Websense bin directory (/opt/Websense/bin/) and enter the following command:
export LD_LIBRARY_PATH=.
3.
Windows:
wsbackup -b -d <directory>
Linux:
./wsbackup -b -d <directory>
Here, <directory> indicates a local or remote destination directory for the backup archive.
 
Warning 
Do not store backup files in the Websense bin directory. This directory is deleted if you uninstall your Websense software.
4.
*
wsbackup -s -t "<m> <h> <day_of_month> <month> <day_of_week>" -d <directory>
 
Important 
*
./wsbackup -b -s -t \"<m> <h> <day_of_month> <month> <day_of_week>\" -d <directory>
For example, to schedule a backup to run at 10:10 a.m. on Sundays:
./wsbackup -s -t "10 10 * * 0"
Here, the backup is scheduled to run at 10:10 a.m. on Sundays (regardless of the month or date).
Scheduled backup commands use crontab format, and the quotation marks and spaces are required.
In place of the variables shown in the example, provide the following information:
Each field can take a number, an asterisk, or a list of parameters. Refer to any crontab reference for details.
After running an immediate backup, or after the scheduled backup process has completed successfully, the WebsenseBackup.cfg file is created in the backup directory. Use this file to configure how long backup files are retailed. See Configuring how long backup files are stored.
Enabling scheduled backups on Windows servers
On supported Windows servers, the scheduled task that the Websense Backup Utility creates does not include user account information required by server security settings. This means that the backup file is not saved as expected.
To address this issue, manually update the scheduled task to add the required user account information as follows:
1.
Open the Windows Task Scheduler (Start > Administrative Tools > Task Scheduler or Server Manager > Tools > Task Scheduler).
2.
Select Task Scheduler Library in the left navigation pane.
3.
Right-click the Websense Backup task and select Export.
4.
5.
Update the <Author> container with an account with local administrator permissions in the format DOMAIN\UserName. If the backup files will be saved to a remote drive, this must be a domain account, rather than a local account.
<Author>WBSN-SVR\Administrator</Author>
6.
Update the <UserId> container with an account with local administrator permissions in the format DOMAIN\UserName. If the backup files will be saved to a remote drive, this must be a domain account, rather than a local account.
<UserId>TEST-DOMAIN\NetworkUser</UserId>
7.
8.
Verify that the correct destination directory appears in the <Arguments> container. Note that the directory path should have the following format:
*
C:\folder\subfolder
*
\\10.102.55.4\BackupDirectory
For example:
<Arguments>--backup --dir "C:\WbsnBackup"</Arguments>
Note that there is no backslash at the end of the path.
9.
10.
In the Task Scheduler, right-click the existing Websense Backup task and select Delete.
11.
12.
13.
To verify that the changes took effect correctly, right-click the new Websense Backup task and select Run, then make sure that a backup file was created in the expected location.
Configuring how long backup files are stored
After the first backup process has run, optionally use a text editor to edit the WebsenseBackup.cfg file, created with the backup archive, as follows:
*
Specify a numeric value for the KeepDays parameter, which sets the number of days archive files remain in the backup directory (365, by default).
When a file is older than the specified time period, it is deleted automatically.
*
Specify a numeric value for the KeepSize parameter, which sets the maximum number of bytes allotted for backup files (10857600, by default).
When the backup directory reaches the specified size limit, the oldest backup file is deleted automatically.
Restoring your web protection configuration
When you restore your TRITON AP-WEB or Web Filter & Security configuration, make sure that you are restoring data for the components that exist on the current machine.
If the machine was rebuilt after, for example, a serious hardware failure, make sure that you have installed only the components that previously resided on the machine. The backup process can only restore configuration information for components that were present on the machine when the backup file was created.
Also, remember that cross-platform backup and restore (from Windows to Linux, for example) is not supported.
*
*
*
*
*
To restore a previous configuration:
1.
2.
*
(Windows) Navigate to the Websense bin directory (C:\Program Files or Program Files (x86)\Websense\Web Security\bin\).
*
(Linux) Navigate to the Websense bin directory (/opt/Websense/bin/) and enter the following command:
export LD_LIBRARY_PATH=.
3.
wsbackup -r -f archive_file.tar.gz
 
Important 
The Backup Utility saves some files used for communication with third-party integration products. Because these files reside outside the Websense directory structure, you must restore them manually, by copying each file to the correct directory.
Files that must be restored manually include:
What files does the Backup Utility save?
The Backup Utility identifies and saves any of the following files that it finds on the machine on which it is run.
 
\Program Files or Program Files (x86)\Websense\Web Security\bin
or
/opt/Websense/bin
bin directory (continued)
Windows: rtm\db\bin\
Windows: rtm\conf\
Windows: rtm\tomcat\conf\
Windows: rtm\tomcat\conf\Catalina\localhost\
Windows: tomcat\bin\
Windows: tomcat\conf\
Windows: tomcat\conf\Catalina\Localhost
Windows: webroot\
Windows: webroot\Exlorer\
Linux: conf/
Linux: conf/restore/

Go to the table of contents Go to the previous page Go to the next page View or print as PDF
Backup and Restore FAQ : How do I back up and restore web protection software?
Copyright 2016 Forcepoint LLC. All rights reserved.