Knowledge Center Search


How to backup and restore configuration file on EX-series switches to FTP server

  [KB11194] Show KB Properties

  [KB11194] Hide KB Properties

Knowledge Base ID: KB11194
Last Updated: 14 Jun 2013
Version: 6.0

The information below describes the steps to backup and restore JUNOS configuration file to an FTP server.

Problem or Goal:


JUNOS Command Line interface allows the user to export the configuration file into an FTP server and to import it back to the switch. The information below describes the steps to backup and restore JUNOS configuration file on FTP server.

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

      system {
          archival {
            configuration {
                archive-sites {


  • To backup the config file on time interval, you can also replace the 'transfer-on-commit' statement with the statement 'transfer-interval' with specifying interval in range of 15 to 2880 minutes.

    Check the specific settings of the FTP server for ASCII text files, after you backup your config 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 character.

  • To restore configuration file from FTP server
    The following configuration sample shows how to restore the JUNOS configuration from an ASCII configuration file that was previously stored on FTP server

    user@switch# edit system archival configuration     

    [edit system archival configuration]
    user@switch# load merge ftp://username:password@
    load complete

    [edit system archival configuration]

    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'.


Related Links:

Logged In

null OblixAnonymous
Logout My Account My Subscriptions



Question or KB ID:




*Selection Required

*Rate the Helpfulness
Solved my problem
Helpful, but didn't solve my problem
Not helpful, didn't solve my problem
Just browsing
*Rate the Quality - This article is comprehensive and easy to understand
Strongly Agree
Strongly Disagree

Your response will be used to improve our document content.
Copyright© 1999-2012 Juniper Networks, Inc. All rights reserved.