Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Guide That Contains This Content
[+] Expand All
[-] Collapse All

    copy running-configuration


    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.


    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.


    • 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 script.


    Privileged Exec

    Published: 2014-08-14