Support Support Downloads Knowledge Base Service Request 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

[EX] How to back up and restore configuration files to an FTP server on EX switches

0

0

Article ID: KB11194 KB Last Updated: 14 Feb 2020Version: 7.0
Summary:

This article details the steps to back up and restore Junos OS configuration files to an FTP server.

 

Solution:
The Junos Command Line Interface (CLI) allows users to export a configuration file into an FTP server and to import it back to a switch. The information below details the steps to back up and restore a Junos OS configuration file on an FTP server.
  • Back up the configuration file on the FTP server.

The following configuration sample shows how to back up a Junos OS configuration file on the FTP server. On every commit applied on the CLI, the EX switch will transfer a copy of the configuration file to an ASCII file on the FTP server. The filename created on the FTP server contains the hostname, date, and time signature.

  system {
      archival {
        configuration {
            transfer-on-commit;
            archive-sites {
                "ftp://username:password@172.30.36.59";
                }
            }
      }
}
  • To back up the configuration file based on a time interval, you can also replace the transfer-on-commit statement with the statement transfer-interval and specify an interval in the range of 15 to 2880 minutes.

Note: Check the specific settings of the FTP server for ASCII text files. After you back up your configuration, verify that the file is readable with a text editor and that no extra characters are added during the backup process, such as end-of-line characters.

  • To restore configuration file from FTP server

The following configuration sample shows how to restore a Junos OS configuration from an ASCII configuration file that was previously stored on the FTP server:

[edit]
user@switch# edit system archival configuration     

[edit system archival configuration]
user@switch# load merge ftp://username:password@172.30.36.59/switch_juniper.conf.gz_20080304_141543
load complete

[edit system archival configuration]
user@switch#

The content on the ASCII file on the FTP server will be merged with the existing configuration on the switch. To replace the config file on the switch with the loaded file, use the 'replace' statement instead of 'merge'.

 

Modification History:

2020-02-14: Article reviewed for accuracy; no changes required.

 

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

Security Alerts and Vulnerabilities

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