copyrunning-config

Syntax

copy{running-config | startup-config | checkpoint}

Description

This command copies a specified configuration from the USB drive to the running configuration, to a startup configuration, or to a checkpoint.

Command context

Manager (#)

Parameters

Specifies the name of a configuration file on the USB drive with the syntax:usb:/

running-config

Specifies that the configuration file is copied to the running configuration. The file must be in CLI, JSON, or checkpoint format or the copy will fail. the copy will not work.

startup-config
Specifies that the configuration file is copied to the startup configuration. The switch stores this configuration between reboots. The startup configuration is used as the operating configuration following a reboot of the switch. The file must be in JSON or checkpoint format or the copy will fail.
检查点

Specifies the name of a new checkpoint file to receive a copy of the configuration. The configuration file on the USB drive must be in checkpoint format.

NOTE:

Do not start the checkpoint name withCPCbecause it is used for system-generated checkpoints.

Authority

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

Usage

This command requires that the USB drive is formatted with the FAT file system and that the file be in the appropriate format as follows:
  • running-config: This option requires the file on the USB drive be in CLI, JSON, or checkpoint format.

  • startup-config: This option requires the file on the USB drive be in JSON or checkpoint format.

  • 检查点: This option requires the file on the USB drive be in checkpoint format.

Examples

复制文件runClifrom the USB drive to the running configuration:

switch#copy usb:/runCli running-configConfiguration may take several minutes to complete according to configuration file size --0%----10%----20%----30%----40%----50%----60%----70%----80%----90%----100%-- Success

复制文件startUpfrom the USB drive to the startup configuration:

switch#copy usb:/startUp startup-config成功

复制文件testCheckfrom the USB drive to theabc检查点:

switch#copy usb:/testCheck checkpoint abc成功