copy flash disk0

Copies the image binary or a specified file stored in flash to the external USB flash drive.
Syntax
copy flash disk0 { system-manifest | ufi-primary image-file | ufi-secondary image-file | file source-file destination-file | primary image-file | secondary image-file }
Parameters
system-manifest
To copy the manifest package from flash to USB.
ufi-primary image-file
Specifies the primary partition of the UFI.
ufi-secondary image-file
Specifies the secondary partition of the UFI.
file source-file destination-file
Specifies the file to be copied.
primary image-file
Specifies the primary partition of the flash where the source file is located.
secondary image-file
Specifies the secondary partition of the flash where the source file is located.
Modes

Privileged EXEC mode

Usage Guidelines

Use the show files disk0 command to verify the files copied.

Examples

The following example shows copying the primary partition's UFI to USB.

device# copy flash disk0 ufi-primary ufip.bin
Parameter Validation Successful
Image Upload to USB started
Image Upload to USB Done
Image Upload Complete

The following example copies the startup-config file from the flash and saves it as the file startup.txt on the USB.

device# copy flash disk0 file startup-config.txt startup.txt
Parameter Validation Successful
File Upload to USB started
File Upload to USB Done
File Upload Complete

The following example shows copying the image binary stored in the primary partition of the flash to the external USB.

device# copy flash disk0 primary p.bin
Parameter Validation Successful
Image Upload to USB started
Image Upload to USB Done
Image Upload Complete

The following example shows copying the manifest package from flash to USB.

device# copy flash disk0 system-manifest
Parameter Validation Successful
USB Manifest Upload in progress...
Manifest file Upload to USB Done
Signature Upload to USB started
Signature Upload to USB Done
Image Upload to USB started
Image Upload to USB Done
Config Upload to USB started
Config Upload to USB Done
Manifest Upload Complete
History
Release version Command history
08.0.30 This command was introduced.
09.0.00 This command was modified to add the system-manifest, ufi-primary, and ufi-secondary options.