Overview
This article guides you on the process of backing up GFI LanGuard.
DISCLAIMER: GFI Software recommends keeping a backup of the product Configuration Data. In case of data loss, GFI cannot recover your configuration if a backup is not available. If using backup software to backup data, it is required to stop the GFI LanGuard Attendant service before the backup starts and to start the service again once the backup is complete. Not stopping the service during a backup by third-party backup software may cause GFI LanGuard to malfunction.
Process
Backup of GFI LanGuard includes 3 steps:
- Backup the configuration - Using the Import and Export Configuration Wizard or Import / Export command line interface.
- Backup the database.
- Backup the Data directory and selected configuration files.
1. Backup the Configuration
Option 1: Using the Import and Export Configurations Wizard
- Open the GFI LanGuard console and go to File > Import and Export Configuration.
- Select the Export the Desired Configurations to File option and click Next.
- Select the location to save the file and click Next.
- Select the configuration options you would like to export and click Next.
- Once complete, a .cfg file is created in the location specified. Make a backup of this file.
- Scanning Profiles
- Complete/Combination Scans
- Vulnerability Assessment
- Network & Software Audit
- Ports
- TCP
- UDP
- Custom Reports
- Scheduled Reports
- Auto-Remediate Settings
- Application Auto-Uninstall
- Patch Autodownload Settings
- Patch Auto-Deployment
- Options
- Database Backend
- Alerting Options
- Computer Filters
- Internal Settings
Option 2: Backup Using the Import/Export Command Line
- On the machine where GFI LanGuard is installed, open a command prompt and change the directory to the LanGuard installation folder.
- To list all the parameters that can be used to operate the import/export tool, run the command:
impex /?
/H, /? |
Running without parameters displays this help message. |
/XML:<xmlfile> |
The filename of the exported/imported file name. This parameter is mandatory. |
/DB:<dbfile> |
The database file to be used during the import/export. If this is not specified, the default operationsprofiles.mdb file is used. |
/EX |
Exports data from the database to an XML file (Default Option). |
/MERGE |
When specified and if the target XML file for export already exists, the file is opened and data is merged. |
/IM |
Imports data from XML file to the database. |
/ONLYNEWER |
When specified only vulnerabilities newer than the newest vulnerabilities in the database are imported. |
/PORTS |
Exports/imports all ports. |
/PORT:<number> |
Exports/imports the specified port. /PORTTYPE must be specified. |
/PORTTYPE:<type> |
Exports/imports all ports of the specified type. |
/PROFILES |
Exports/imports all scanning profiles. |
/PROFILE:<name> |
Exports/imports the specified scanning profile. |
/VULNS |
Exports/imports all vulnerabilities. |
/VULN:<name> |
Exports/imports the specified vulnerability. /VULNCAT must be specified. |
/VULNCAT:<category> |
Exports/imports all vulnerabilities of the specified category. |
/SKIP |
If an item already exists in the target XML/database , that item is skipped. |
/OVERWRITE |
If an item already exists in the target XML/database , that is overwritten. |
/RENAME:<value> |
If an item already exists in the target XML/database , that item is renamed to the value specified if /PROFILE or /VULN was specified. Port information is merged if the item is a port, or renamed by prefixing its name with the value specified in any other case. |
Example 1 – Exporting settings
impex /XML:”C:\LanGuardSettings.xml”
Successfully exported all profiles, vulnerabilities and ports!
impex /IM /XML:”C:\LanGuardSettings.xml”
Successfully imported all profiles, vulnerabilities and ports!
2. Backup the Database
Microsoft SQL Server database
Microsoft Access database
- Stop the GFI LanGuard Attendant service.
- Backup the .mdb file specified in the LanGuard database settings:
- To find out the location of the file, open the LanGuard console and go to Configuration > Database Maintenance Options > Database Backend Settings.
- By default, the location of the Microsoft Access database is:
C:\ProgramData\GFI\LanGuard 12\scanresults.mdb
- Start the GFI LanGuard Attendant service.
3. Backup the Data Folder
For maximum protection and to give GFI Support the most flexibility to help you restore your GFI LanGuard to the state it was in prior to upgrade please make a copy of the following files and folders:
C:\ProgramData\GFI\LanGuard 12\ directory
or on an XP/2003 class computer:
C:\Documents and Settings\All Users\Application Data\GFI\LanGuard 12\ directory
C:\Program Files (x86)\GFI\Languard 12 Agent\crmiini.xml
Related Articles:
Moving GFI LanGuard to a New Server
Priyanka Bhotika
Comments