Perform this procedure to back up and restore the contents of the internal compact flash to a USB flash device without entering multiple copy commands. This procedure is useful if you want to copy the complete compact flash contents to another chassis.
Caution
Always use the usb-stop command to safely unplug the USB drive from the USB slot.
Important
Disable logging using the command: no boot config logging.
You must have a USB storage device ready to use that is at least 2 GB. The switch supports USB 1 and 2.
The system verifies that the USB flash device has enough available space to perform the backup operation. If the USB flash device does not have enough available space, an error message appears. The backup command uses the following filepath on the USB flash device: /usb/intflash/intflashbackup_yyyymmddhhmmss.tgz.
The backup action can take up to 10 minutes.
enable
backup intflash
restore intflash
Switch:1#backup intflash
Warning: Command will backup all data from /intflash to /usb/intflash. It will take a few minutes and may cause high CPU utilization. Are you sure you want to continue? (y/n) ? y For file system /intflash: 7252475904 total bytes on the filesystem 990920704 used bytes on the filesystem 6261555200 free bytes on the filesystem For file system /usb: 2021216256 total bytes on the filesystem 12038144 used bytes on the filesystem 2009178112 free bytes on the filesystem cd /intflash ; /bin/tar -czvf /usb/intflash/intflashbackup_20140610074501.tgz * ; /bin/sync Info: Backup /intflash to filename /usb/intflash/intflashbackup_20140610074501.tgz is complete! Do you want to stop the usb? (y/n) ? n