copy {running-config | startup-config}
<STORAGE-URL>
Syntax
copy {running-config | startup-config} <STORAGE-URL> {cli | json}
Description
Copies a running configuration or a startup configuration to a USB drive.
Command context
Manager (#
)
Parameters
{running-config | startup-config}
Selects the running configuration or the startup configuration to be copied to a USB drive. Required.
<STORAGE-URL>
Specifies the name of the file to contain the copied configuration. Required. The syntax is the following:
usb:/<file>
{cli | json}
Selects whether the file containing the configuration is in CLI or JSON format. Required.
Authority
Administrators
Usage
The switch supports JSON and CLI file formats when copying the running or starting configuration to the USB drive. This command requires that the USB drive have the FAT file system.
The USB must be enabled and mounted with the following commands:
switch(config)# usb switch(config)# end switch# usb mount
Examples
Copying a running configuration to a file named
runCLI
on a USB drive:
switch# copy running-config usb:/runCLI cli Success
Copying a startup configuration to a file named
startCLI
on a USB drive:
switch# copy startup-config usb:/startCLI cli Success