Support Support Downloads Knowledge Base Juniper Support Portal 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

[M/MX/T-series] Explanation of the various Junos configuration files and their location on a router



Article ID: KB24815 KB Last Updated: 26 Jun 2012Version: 1.0
This article provides information about  the various Junos configuration files - juniper.conf.gz, juniper.db,,, juniper.conf+.gz,, juniper.conf.1.gz, and rescue.conf.gz. 
What are the various Junos configuration files and where are they located on a router?
  • juniper.conf.gz:

    It is the router configuring. It is used for rollback 0. Note that 'juniper.conf juniper.conf.gz' and 'juniper.conf.gz.jc' are morally equivalent. It is located in /config.

  • juniper.db:

    This is the shared candidate database. It is located in /var/run/db.


    This is the committed configuration database (active configuration).It is located in /var/run/db.


    A copy of the candidate DB, which is used during commit check. During commit, it becomes, if all goes well. It is located in /var/run/db.
  • juniper.conf+.gz: This is the candidate configuration and exists only during commit. It is located in /config.

  • may contain the results of expanding groups and applied transient changes from commit scripts. In either case, represents the committed DB, prior to these changes being applied. This is needed for seeding private edit sessions, looking at the committed config without inheritance, and so on. It is located in /var/run/db.

  • juniper.conf.1.gz to juniper.conf.3.gz:

    Rollback configurations 1 through 3. They are located in /config.

  • juniper.conf.4.gz to juniper.conf.49.gz:

    Rollback configurations 4 through 49. Also, on J-series, at least the balance of configurations in /config and /var/db/config are configurable. They are located in /var/db/config.

  • rescue.conf.gz:

    A copy of a known good and working configuration, which can be loaded in case of emergency; without having to remember which rollback number to use. It is located in /config.

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