copy {running-config | startup-config} <STORAGE-URL>

Syntax

copy {running-config | startup-config} <STORAGE-URL> {cli | json}

Description

Copies the 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 the switch USB drive.

<STORAGE-URL>

Specifies a remote file with the following syntax: usb:/<file>

{cli | json}

Selects the format of the remote file: CLI or JSON.

Authority

Administrators or local user group members with execution rights for this command.

Usage

The switch supports JSON and CLI file formats when copying the running or starting configuration to the USB drive. The USB drive must be formatted with the FAT file system.

The USB drive 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 the USB drive:

switch# copy running-config usb:/runCLI cli
Success

Copying a startup configuration to a file named startCLI on the USB drive:

switch# copy startup-config usb:/startCLI cli
Success