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. Available only if the router is in Automatic Commit mode. There is no no version.
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
Hide Navigation Pane
Show Navigation Pane
SHA1