Support Support Downloads Knowledge Base Case Manager My Juniper Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[NSM] Methods for creating a database backup

0

0

Article ID: KB12285 KB Last Updated: 18 Feb 2016Version: 12.0
Summary:

This article describes three methods for creating a backup of the NSM database from the command line. The directions will work with both Solaris and Linux servers.  

Symptoms:

Different methods are available to create a backup of the NSM database. This article describes the procedures.  

Solution:

Method 1: Create a compressed backup using the jtac-support utility 

Recommended Method
Obtain the script from the following KB and install: KB24982 - NSM Support tool created by JTAC.
  1. Log in to the NSM server as root.
  2. Optional: Stop NSM processes (backup runs faster, but this is not required):  KB11263 - Proper order for starting and stopping NSM services.

  1. Run jtac-support db (the command path may vary depending where you installed/extracted the script).

    Note: For NSM 2012.2R10 and higher, /usr/netscreen/HaSvr/utils/tech-support.sh db is the same script.

Method 2: Create a compressed backup using the tech-support utility

  1. Log in to the NSM server as root.
  2. Stop the NSM processes: KB11263 - Proper order for starting and stopping NSM services.

  1. Run the command:  /usr/netscreen/GuiSvr/utils/tech-support.sh db
This method will output a tar-gzipped  copy of the database located in /usr/netscreen/GuiSvr/var/. Make sure to move this file from that directory and put it somewhere else, or it will end up as part of the nightly backup, taking up drive space.

Method 3: Create a backup using the backup utility

Warning: This backup is deleted when upgrading NSM.

  1. Log in to the NSM server as root.

  2. Switch to user nsm.

#su nsm

       3. Run the command: /usr/netscreen/HaSvr/utils/replicateDb backup

This method uses the built-in method for doing a nightly backup and updating the existing backup in /var/netscreen/dbbackup. The directories in that directory are named with numbers, one for each day of the week for which backups are configured. The names are numbered from 1 (Monday) to 7 (Sunday). The result is a non-compressed directory.

Method 4: Create a backup manually

  1. Log in to the NSM server as root.
  2. Stop the NSM processes: KB11263 - Proper order for starting and stopping NSM services.

  3. On Linux 
    • Create a tar.gz archive using:
       tar -cvzf guiSvrDB.tar.gz /var/netscreen/GuiSvr

    On Solaris
    1. Run tar -cvf guiSvrDB.tar /var/netscreen/GuiSvr 
    2. Run gzip guiSvrDB.tar 


Note: Backup of database includes device configuration, objects, VPN, Policy, etc. It does not include device logs stored under /usr/netscreen/DevSvr/var/logs.

For information on backing up the entire NSM install, refer to:

Related Links

Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search