copy running-configuration
Syntax
copy running-configuration destination [ force ] [ include-text-config ]
Release Information
Command introduced before JunosE Release
7.1.0.
include-text-config keyword added in JunosE Release 9.1.0.
Description
Saves the configuration currently running on the router to a local or remote (network) router configuration file (.cnf) in compressed format. It also embeds the Cyclic Redundancy Check (CRC) value in the header of the configuration file. There is no no version.
![]() | Note: Although this command is available in either Automatic Commit mode or Manual Commit mode, use this command only in Manual Commit mode. Issuing this command in Automatic Commit mode has no effect. |
Options
- destination—Destination filename (*.cnf)
- force—Creates a copy even when the destination file already exists
- include-text-config—Generates the .cnf file, including
the text configuration, in compressed format
Note: A Perl script is provided in the Tools folder of the compressed software image bundle, which you downloaded from the Juniper Networks website, that enables you to view the text configuration in a configuration file that contains both binary and text configuration. The Perl script supports multiple platforms. The “Usage and Troubleshooting document for desktop tool” file in PDF format provides an explanation of how to extract the system configuration file, using the extractScrFromCnf.pl script.
Mode
Privileged Exec