2.4.1. copy
Syntax
copy (flash:// | tftp://) (flash:// | tftp://)
copy tftp:// (backup-config | running-config | startup-config)
copy usb (backup-config | running-config | startup-config)
copy (backup-config | running-config | startup-config) tftp://
copy (backup-config | running-config | startup-config) usb
copy (backup-config | startup-config) running-config
copy (backup-config | running-config) startup-config
copy (running-config | startup-config) backup-config
Parameter
flash:// |
Specify the file stored in flash to operation. Available files are:flash://startup-config flash://backup-config flash://rsa1 flash://rsa2 flash://dsa2 flash://image0 flash://image1 flash://ram.log flash://flash.log |
tftp:// |
Specify remote tftp server and remote file name. The format is |
usb |
USB flash drive |
running-config |
Running configuration file |
startup-config |
Startup configuration file |
backup-config |
Backup configuration file |
Default
No default value for this command.
Mode
Privileged EXEC
Usage
There are many types of files in system. These files are very important for administrator to manage the switch. The most common file operation is copy. By using these copy commands, we can upgrade, backup following type of files. When using USB flash disk, the file format of USB is FAT32.
Firmware Image
Configuration Files
Syslog Files
Language Files
Security Certificate
Example
This example shows how to copy running configuration to startup configuration.
Switch# copy running-config startupst-config
This example shows how to backup running configuration to remote tftp server 192.168.111 with file name test1.cfg.
Switch# copy running-config tftp://192.168.1.111/test1.cfg Uploading file…Please Wait… Uploading Done
This example shows how to upgrade startup configuration from remote tftp server 192.168.1.111 with file name test2.cfg.
Switch# copy tftp://192.168.1.111/test2.cfg startup-config Downloading file…Please Wait… Downloading Done Upgrade config success. Do you want to reboot now? (y/n)n
This example shows how to backup security file dsa2 to remote tftp server 192.168.1.111 with file name dsa2.
Switch# copy flash://dsa2 tftp://192.168.1.111/dsa2 Uploading file…Please Wait… Uploading Done