Chapter 4
| System Management Commands
File Management
– 140 –
copy This command moves (upload/download) a code image or configuration file
between the switch’s flash memory and an FTP/TFTP server. When you save the
system code or configuration settings to a file on an FTP/TFTP server, that file can
later be downloaded to the switch to restore system operation. The success of the
file transfer depends on the accessibility of the FTP/TFTP server and the quality of
the network connection.
Syntax
copy file {file | ftp | running-config | startup-config | tftp | unit}
copy ftp {add-to-running-config | file | https-certificate | public-key |
running-config | startup-config}
copy file unit
copy running-config {file | ftp | startup-config | tftp}
copy startup-config {file | ftp | running-config | tftp}
copy tftp {add-to-running-config | file | https-certificate | public-key |
running-config | startup-config}
copy unit file
copy usbdisk file
add-to-running-config - Keyword that adds the settings listed in the
specified file to the running configuration.
file - Keyword that allows you to copy to/from a file.
ftp - Keyword that allows you to copy to/from an FTP server.
https-certificate - Keyword that allows you to copy the HTTPS secure site
certificate.
public-key - Keyword that allows you to copy a SSH key from a TFTP server.
(See “Secure Shell” on page 267.)
running-config - Keyword that allows you to copy to/from the current
running configuration.
startup-config - The configuration used for system initialization.
tftp - Keyword that allows you to copy to/from a TFTP server.
unit - Keyword that allows you to copy to/from a specific unit in the stack.
usbdisk - Keyword that allows you to copy to/from a USB memory stick.
(USB slot only supports simple data storage devices using a FAT16/32 file
system with or without a partition table.)
De
faul
t Setting
None
Command Mode
Privileged Exec