Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

<copy-config>

Usage

Description

Copy the source configuration datastore to the target configuration datastore.

If a client application issues the Junos XML protocol <open-configuration> operation to open a specific configuration database before executing a <copy-config> operation, <candidate/> refers to the open configuration database. Otherwise, <candidate/> refers to the candidate configuration.

You can use <copy-config> to perform the following operations:

  • Copy the active or candidate configuration data in XML format to a file.

  • Copy the active configuration to the candidate configuration or open configuration database.

  • Copy the configuration data in the specified file to the candidate configuration or open configuration database.

Attributes

format="(text | xml)" Specify the format of the source configuration data.
  • text—Load configuration data formatted as text.
  • xml—Load configuration data formatted as Junos XML tag elements. This is the default.

Contents

<candidate/> Specify the open configuration database, or if there is no open database, the candidate configuration database.
<running/>

Specify the active configuration database.

<source>

Specify the source configuration datastore.

<target>

Specify the target configuration datastore.

<url>

Specify the location of the input or output file. For more information, see Upload and Format Configuration Data in a NETCONF Session.

Release Information

<url> (as target) support for file:// URI with absolute path added in Junos OS Release 23.4R1 and Junos OS Evolved Release 23.4R1.