Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

archival

date_range 27-May-24

Syntax

content_copy zoom_out_map
archival {
    configuration {
        archive-sites {
            file://<path>/<filename>;
            ftp://username@host<:port>url-path password password;
            http://username@host<:port>url-path password password;
            pasvftp://username@host<:port>url-path password password;
            scp://username@host<:port>url-path password password;
        }
        transfer-interval interval;
        transfer-on-commit;
    }
    routing-instance routing-instance;
}

Hierarchy Level

content_copy zoom_out_map
[edit system]

Description

Configure copying of the currently active configuration to an archive site. An archive site can be a file, or an FTP, HTTP, passive FTP, or SCP location.

Options

configuration

Configure the router or switch to periodically transfer its currently active configuration (or after each commit). Parameters include archive-sites, transfer-interval, and transfer-on-commit.

Note:

The [edit system archival] hierarchy is not available on QFabric systems.

archive-sites

Specify where to transfer the current configuration files. When specifying a URL in a Junos OS statement using an IPv6 host address, you must enclose the entire URL in quotation marks (" ") and enclose the IPv6 host address in brackets ([ ]). For example: "scp://username<:password>@[ipv6-host-address]<:port>/url-path".

If you specify more than one archive site, the router or switch attempts to transfer the configuration files to the first archive site in the list, moving to the next only if the transfer fails. The destination filename is saved in the following format, where n corresponds to the number of the compressed configuration rollback file that has been archived:

content_copy zoom_out_map
router-name_YYYYMMDD_HHMMSS_juniper.conf.n.gz

The time included in the destination filename is always in Coordinated Universal Time (UTC) regardless of whether the time on the router or switch is configured as UTC or the local time zone. The default time zone on the router or switch is UTC.

transfer-interval

The frequency, in minutes, for transferring the current configuration to an archive site. Valid intervals are 15 to 2880 minutes.

transfer-on-commit

Configure the router or switch to transfer its currently active configuration to an archive site each time you commit a candidate configuration.

routing-instance

Defines the routing instance through which a server is reachable.

Required Privilege Level

admin—To view this statement in the configuration.

admin-control—To add this statement to the configuration.

Release Information

Statement introduced before Junos OS Release 7.4.

footer-navigation