cisco IOS — Copying a Configuration File from an FTP Server to Flash Memory Devices

Example The following example copies the file named running-config from partition 1 on internal flash memory to partition 1 of usbflash0 on a device. In this example, the source partition is not specified, so the device prompts for the partition number: Device# copy flash: usbflash0: System flash Partition Size Used Free Bank-Size State Copy Mode 1 4096K 3070K 1025K 4096K Read/Write Direct 2 16384K 1671K 14712K 8192K Read/Write Direct [Type ? for partition directory; ? for full directory; q to abort] Which partition? [default = 1] System flash directory, partition 1:

File Length Name/status 1 3142748 dirt/network/mars-test/c3600-j-mz.latest 2 850 running-config [3143728 bytes used, 1050576 available, 4194304 total] usbflash0 flash directory: File Length Name/status 1 1711088 dirt/gate/c3600-i-mz 2 850 running-config [1712068 bytes used, 2482236 available, 4194304 total] Source file name? running-config Destination file name [running-config]? Verifying checksum for 'running-config' (file # 2)... OK Erase flash device before writing? [confirm] Flash contains files. Are you sure you want to erase? [confirm] Copy 'running-config' from flash: device as 'running-config' into usbflash0: device WITH erase? [yes/no] yes Erasing device...

eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee ...erased! [OK - 850/4194304 bytes] Flash device copy took 00:00:30 [hh:mm:ss] Verifying checksum... OK (0x16) Copying a Configuration File from an FTP Server to Flash Memory Devices To copy a configuration file from an FTP server to a flash memory device, complete the task in this section: Procedure Managing Configuration Files Copying a Configuration File from an FTP Server to Flash Memory Devices Command or Action Purpose Example: Device# copy flash: usbflash0: • The source device and the destination device cannot be the same. For example, the copy usbflash0: usbflash0: command is invalid.

Command or Action Purpose Step 1 enable Enables privileged EXEC mode. Managing Configuration Files 25