6.1 Management Database Export & Import (`migrate_server` Tool)

Key Takeaways

  • The migrate_server utility requires downloading and extracting the target R82 Upgrade Tools package on legacy source management servers before performing an export.
  • Executing migrate_server export -v R82 <output_file.tgz> captures rulebases, objects, internal users, and the Internal Certificate Authority (ICA) into a compressed tarball.
  • Running migrate_server ver -v R82 executes pre-upgrade verification checks to detect schema conflicts, obsolete objects, and syntax errors prior to export.
  • Database import (migrate_server import -v R82 <archive.tgz>) must be performed on a freshly installed, clean Gaia R82 Security Management Server.
  • The ICA database and internal certificates are preserved across export/import, maintaining Secure Internal Communication (SIC) trust with managed gateways.
Last updated: July 2026

Management Database Export & Import (migrate_server Tool)

Upgrading a Check Point Security Management Server (SMS) to R82 often involves migrating the management database to a new server hardware platform or virtual machine running a clean Gaia R82 installation. The primary tool for extracting, converting, and restoring the Check Point management database is the migrate_server command-line utility (which replaces legacy tools such as upgrade_export and upgrade_import from earlier software generations).

This section covers the technical mechanics of exporting a Security Management database from a legacy source server (such as R80.40, R81, R81.10, or R81.20) and importing it into a target R82 Security Management Server, including pre-migration verification checks, tool version compatibility requirements, and internal certificate preservation.


The migrate_server Utility Architecture

The migrate_server utility operates at the application database layer of Check Point Gaia OS. It extracts all logical configurations, policy definitions, network objects, user databases, and certificate authority stores into a single, compressed gzip tar archive (.tgz).

+-------------------------------------------------------------------------+
|                    Source Management Server (e.g., R81.20)              |
|                                                                         |
|  +-------------------+  +-------------------+  +---------------------+  |
|  | Policy Rulebases  |  | Network Objects   |  | Internal CA (ICA)   |  |
|  | ($FWDIR/conf)     |  | ($FWDIR/database) |  | ($CPDIR/conf)       |  |
|  +---------+---------+  +---------+---------+  +----------+----------+  |
|            |                      |                       |             |
|            +----------------------+-----------------------+             |
|                                   |                                     |
|                       [migrate_server export]                           |
|                                   |                                     |
|                                   v                                     |
|                       R82_Export_Archive.tgz                            |
+-----------------------------------+-------------------------------------+
                                    |
                         (Secure Transfer via SCP)
                                    |
                                    v
+-----------------------------------+-------------------------------------+
|                     Target Management Server (Clean R82)                |
|                                                                         |
|                       [migrate_server import]                           |
|                                   |                                     |
|  +-------------------+  +-------------------+  +---------------------+  |
|  | Restored Rulebase |  | Restored Objects  |  | Preserved ICA Trust |  |
|  +-------------------+  +-------------------+  +---------------------+  |
+-------------------------------------------------------------------------+

Crucial Tool Version Requirement

A common mistake on exam questions and in production deployments is attempting to run the source server's native migrate_server executable when exporting a database for an R82 target. You must always use the target version's migration tools on the source machine.

To export a database from an R81.20 server for import into an R82 server:

  1. Download the R82 Upgrade Tools for Gaia archive (Check_Point_R82_Upgrade_Tools_Gaia.tgz) from the Check Point Support Center.
  2. Transfer the package to a temporary directory on the source server (e.g., /var/log/upgrade_tools/).
  3. Extract the tarball: tar -zxvf Check_Point_R82_Upgrade_Tools_Gaia.tgz.
  4. Execute the extracted ./migrate_server binary, explicitly passing the target version flag -v R82.

Pre-Migration Verification (migrate_server ver)

Before creating an export archive, administrators must execute the pre-upgrade verification tool to validate database integrity and identify potential schema or rule conflicts.

Running Verification Checks

From the directory containing the extracted R82 Upgrade Tools on the source server, execute:

./migrate_server ver -v R82

What the Verification Check Validates

Verification CategoryCheck DescriptionRemediation Required if Failed
Obsolete ObjectsIdentifies legacy features or objects no longer supported in R82 (e.g., UserAuthority legacy objects, old OPSEC plugins).Delete obsolete objects in SmartConsole prior to export.
Duplicate IdentifiersScans for duplicate object names, UID collisions, or invalid network mask configurations.Rename duplicate objects or adjust network ranges.
Custom Inspection CodeInspects custom code blocks in $FWDIR/conf/user.def or $FWDIR/conf/table.def.Update or remove non-standard code overrides to align with R82 inspection syntax.
Disk Space ConstraintsVerifies free disk space in /var/log/ and /tmp/.Ensure target export partition has at least 3x the database directory size free.
License & Certificate StateInspects Internal Certificate Authority (ICA) database validity and license signatures.Renew expired ICA certificates or resolve invalid license formats.

Verification results are logged to both stdout and a detailed HTML report generated in the execution directory (pre_upgrade_verification_report.html). All Errors must be resolved before proceeding with the export. Warnings should be reviewed carefully to prevent post-migration policy compilation failures.


Executing Database Export (migrate_server export)

Once pre-migration verification completes without errors, export the management database archive.

Recommended Best Practices Prior to Export

  1. Publish All Sessions: In SmartConsole, ensure all administrators have published open sessions. Unpublished changes in open sessions on the source server may cause database locking issues.
  2. Close SmartConsole Applications: Disconnect all active SmartConsole GUI clients.
  3. Stop Management Services (Optional but Recommended): While migrate_server export can run on a live server, executing cpstop or closing database locks ensures absolute database consistency during read operations.

Export Command Syntax

./migrate_server export -v R82 /var/log/R82_management_db_backup.tgz

Breakdown of Command Flags and Output

  • -v R82: Specifies the target software version schema to convert objects into during export.
  • /var/log/R82_management_db_backup.tgz: Absolute path where the compressed output archive will be created.

Database Export Contents vs. Exclusions

Included in migrate_server exportExcluded from migrate_server export
Security, NAT, HTTPS, & Threat Prevention RulebasesGaia OS Network Interfaces (IPs, Subnets, VLANs)
Network Objects, Host Objects, Groups, & ServicesGaia Static Routes & Dynamic Routing Config (BGP/OSPF)
Internal Certificate Authority (ICA) Database & KeysGaia OS User Accounts & Passwords (/etc/passwd)
User Databases & Authentication GroupsHistorical Traffic Log Files ($FWDIR/log/*.log)
Session Logs & Audit Logs (if log export flags used)OS Hardware Drivers, Kernel Modules, & Interface Names
SmartEvent Correlations, Policy Rules, & ReportsGaia Web Portal Certificates & SNMP System Config

Transferring & Importing Database on Target R82 Server

Step 1: Prepare Target Gaia R82 Security Management Server

Install clean Gaia R82 on the target server (appliance or virtual machine). Complete the First Time Configuration Wizard, selecting Security Management Server as the installation type. Ensure the target Gaia server has matching or higher Jumbo Hotfix Accumulator levels installed.

Step 2: Transfer Archive via SCP

Copy the exported .tgz archive from the source server to the target R82 server using SCP or SFTP:

scp /var/log/R82_management_db_backup.tgz admin@192.168.1.50:/var/log/

Step 3: Execute Import on Target Server

Log into the target R82 Gaia CLI via SSH, enter Expert mode, and run migrate_server import:

cd $FWDIR/bin/
./migrate_server import -v R82 /var/log/R82_management_db_backup.tgz

During execution, the script will prompt for confirmation that existing baseline database objects on the fresh R82 server will be overwritten. Type y to proceed.

Step 4: Post-Import Automatic Restart

Upon successful import, migrate_server automatically reloads Check Point services (cpstart). The Internal Certificate Authority (ICA) structure is restored, preserving all certificate fingerprints and Secure Internal Communication (SIC) relationships established with managed Security Gateways.

Loading diagram...
Management Database Migration Workflow
Test Your Knowledge

When migrating a Security Management database from an R81.20 server to a new R82 server using migrate_server, which version of the migrate_server tool must be executed on the source server?

A
B
C
D
Test Your Knowledge

Which of the following components is EXCLUDED when performing a standard migrate_server export on a Check Point Security Management Server?

A
B
C
D
Test Your Knowledge

What is the primary purpose of executing the command migrate_server ver -v R82 prior to exporting a Security Management database?

A
B
C
D
Test Your Knowledge

An administrator receives an out-of-disk-space error while attempting to execute migrate_server export /var/log/export.tgz. What is the recommended minimum free disk space requirement for the export location?

A
B
C
D