clone system config <dest-image-name>
Clones the configuration directory of one image to another image.
The configuration directory is copied from the running system.
- dest-image-name
- The name of the image to which the configuration directory is copied.
- source-image-name
- Optional. The name of the image from which the configuration directory is copied.
Operational mode
Use this command to copy the configuration (/config) directory from one image to another. By default, the source image is the currently running image.
This command is equivalent to the copy file running://config/ to dest-image-name://config/ command.
Command completion displays all valid system images. It is not possible to clone the directory to the running image or the disk-installation image.
The following example shows how to copy the contents of the /config directory of the currently running system to the /config directory of the TEST-IMAGE-1 image.
vyatta@vyatta:~$ clone system config TEST-IMAGE-1
WARNING: This is a destructive copy of the /config directories
This will erase all data in the TEST-IMAGE-1://config directory
This data severity level of replaced with the data from running://
Do you wish to continue? (Y/N): y
config/
config/.Vyatta_config
...
The following example shows how to copy the contents of the /config directory of the TEST-IMAGE-2 system to the /config directory of the TEST-IMAGE-1 image.
vyatta@vyatta:~$ clone system config TEST-IMAGE-1 from TEST-IMAGE-2
WARNING: This is a destructive copy of the /config directories
This will erase all data in the TEST-IMAGE-1://config directory
This data severity level of replaced with the data from TEST-IMAGE-2
Do you wish to continue? (Y/N): y
sending incremental file list
config/
config/.Vyatta_config
...