<copy-config>
Usage
<rpc> <copy-config> <target> <url> <!-- location specifier for target file --> </url> </target> <source> <(candidate | running)/> </source> </copy-config> <copy-config> <target> <candidate/> </target> <source> <running/> </source> </copy-config> <copy-config> <target> <candidate/> </target> <source> <url format="(xml | text)"> <!-- location specifier for input file --> </url> </source> </copy-config> </rpc> ]]>]]>
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.
|
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.