Knowledge Search


×
 

[EX/SRX] Example - Back up/archive a configuration file to a remote server while executing commit

  [KB15399] Show Article Properties


Summary:

This article describes the Junos OS configuration procedure for backing up a configuration file when a commit operation is executed. The file is then archived to a remote server.

Symptoms:

The goal of this article is to describe how to back up/archive a configuration file to a remote server when executing a commit operation.

Solution:

The following configuration shows how to back up and archive the Junos OS configuration file on an FTP server. On every commit applied from configuration mode, the EX /SRX device will transfer a copy of the configuration file to an ASCII file on the defined FTP server. The filename created on the FTP server contains the following:

  • hostname

  • date

  • time signature (timestamp)

Configuration

system {
              archival {
                  configuration {
                          transfer-on-commit;
                          archive-sites {
                                  "ftp://username@<IP address of FTP server>" password <password>;
                                  }
                          }
               }
     }

Note: Verify FTP server connectivity from the EX switch/SRX firewall to the FTP server prior to configuring archiving.

Modification History:

2019-10-11: SRX Series added to the Solution and Product category because the same config applies to SRX products as well

Related Links: