Configuration and Image Files 141
Configuration and Image Files
copy
The copy Privileged EXEC mode command copies any file from a source to a destination.
Syntax
•
copy
source-url destination-url
[
snmp
]
•
source-url
— The location URL or reserved keyword of the source file to be copied.
•
destination-url
— The destination file URL or reserved keyword of the destination file.
•
snmp —
Used only when copying from/to
startup-config
. Specifies that the
destination/source file is in SNMP format
The following table displays keywords and URL prefixes:
Keyword Source or destination
flash Source or destination URL for Flash memory. It’s the default in case a URL is
specified without a prefix
running-config Represents the current running configuration file.
startup-config Represents the startup configuration file.
image If source file, represent the active image file. If destination file, represent the
non-active image file.
boot Boot file.
tftp: Source or destination URL for a TFTP network server. The syntax for this alias is
tftp://host/[directory]/filename. The host can be either IP address or hostname.
An out-of-band IP address can be specified as described in the usage guidelines.
xmodem: Source for the file from a serial connection that uses the Xmodem protocol.
unit://member/
startup-config
Configuration file used during initialization (startup) on one of the units.
unit://member/
image
Image file on one of the units. For copy from master to all units you can use "*" in
the member field.
null: Null destination for copies or files. A remote file can be copied to null to
determine its size.
book.book Page 141 Thursday, December 18, 2008 7:40 PM