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 Security software?
How do I back up and restore Web Security software?
Topic 50213 | Backup and Restore | Web Security Solutions | 11-Mar-2014
The Websense Backup Utility makes it easy to back up your Websense software settings and policy data, and to revert to a previous configuration.
As a best practice, run the backup process on all machines with Websense components (including V-Series appliances and the TRITON console machine) within a 30 minute time window. When restoring a previous configuration, restore all machines using backup files created in the same 30 minute window.
When restoring software backups, remembering that cross-platform backup and restore (from Windows to Linux, for example) is not supported.
See How do I back up and restore the TRITON infrastructure? for information about backing up the TRITON console.
Running the Web Security Backup Utility
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 -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>
*
wsbackup -b -s -t \"<m> <h> <day_of_month> <month> <day_of_week>\" -d <directory>
In addition to the \" characters at the beginning and end of the entire time and date string, if the string includes any asterisk characters (*), those must also be set off by a \" pair. For example:
wsbackup -b -s -t \"45 1 \"*\" \"*\" 5\"
Here, the backup is scheduled to run at 1:45 a.m. on Fridays (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.
5.
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.
 
Important 
Restoring your Web Security configuration
When you restore a Web 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.
*
*
*
*
*
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 does the Web Security Backup Utility back up?
The Web Security Backup Utility identifies and saves any of the following files that it finds on the machine on which it is run. Files that existed in earlier versions but were not backed up until later versions are noted in the table below.
 
\Program Files or Program Files (x86)\Websense\Web Security\bin
or
/opt/Websense/bin
diagnostics.cfg (starting in v7.7)
domains.txt (starting in v7.8)
icap.conf (starting in v7.8)
ignore.txt (starting in v7.8)
UsageMonitor.ini (starting in v7.7)
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: /etc/wsLib
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 Security software?
Copyright 2016 Forcepoint LLC. All rights reserved.