copy
This command moves (upload/download) a code image or configuration file
between the switch’s flash memory and a TFTP server. When you save the system
code or configuration settings to a file on a TFTP server, that file can later be
downloaded to the switch to restore system opera tion. The su ccess of the file
transfer depends on the accessibility of the TFTP server and t he quality of the
network connection.
Syntax
copy file {file | running-config | startup-config | tftp | unit}
copy running-config
{
file
|
startup-config
|
tftp
}
copy startup-config
{
file
|
running-config
|
tftp
}
copy tftp {file | running-config | startup-config | https-certificate |
public-key
}
copy unit file
file - Keyword that allows you to copy to/from a file.
running-config - Keyword that allows yo u to copy to/fr om the curr ent
running configuration.
startup-config - The config uration us ed for sys tem initi alizati on.
tftp - Keyword that allows you to copy to/fro m a TFTP 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 Commands” on page 25-15.)
unit - Keyword that allows you to copy to/from a specific unit i n the stack.
Default Setting
None
Command Mode
Privileged Exec
Command Usage
The system prompts for data required to complete the copy command.
The destination file name shoul d not contain slashes ( \ or /), the leading letter
of the file name should not be a period (.), and the maximum len gth for fil e
names on the TFTP server is 127 characters or 31 characters for files on th e
switch. (Valid characters: A-Z, a-z, 0-9, “.”, “-”, “_”)
Due to the size limit of the flash memory, th e swi tch suppo rts only two
operation code files.
The maximum number of user-defin ed configurati on files depen ds on
available memory.
You can use “Factory_Default_Config.cfg” as th e source to copy fro m the
factory default configuration file, but you cannot use it as the destination.
To replace the startup configuration, you must use startup-config as the
destination.
23-11
File Management Commands
23