C i s c o C o n f i d e n t i a l - B e t a R e v i e w R 3 . 7. 1
File System Commands on Cisco IOS XR Software
copy
SMR-223
Cisco ASR 14000 Series Router System Management Command Reference
OL-17231-01
copy
To copy a file from a source (such as a network server) to a destination (such as a flash disk), use the
copy
command in EXEC or administration EXEC mode.
copy
source
{
location
node-id
destination
{
location
node-id
|
location
all
} |
running-config
[
atomic
]}
Syntax Description
source
Filename including the directory path or network location of the file. The
possible sources are:
•
directory-path
—Directory path of the file from which the file is copied.
•
access-list
{
ipv4
|
ipv6
}—Copies an access list (EXEC mode only).
•
bootflash:
—Copies from the bootflash: file system.
•
disk0
:—Copies from disk0: file system.
•
disk0a
:—Copies from disk0a: file system partition.
•
disk1
:—Copies from disk1: file system.
•
disk1a
:—Copies from disk1a: file system partition.
•
flash:
—Copies from the flash: file system. The
flash:
keyword is an
alias for bootflash:.
•
ftp:
—Copies from an FTP network server. The syntax is
ftp:
[[[//
username
[
:
password
]@]
location
]/
directory
]/
filename.
•
harddisk
:—Copies from the hard disk drive file system (if present).
•
harddiska:
—Copies from the hard disk partition a.
•
harddiskb:
—Copies from the hard disk partition b.
•
nvram:
—Copies from the NVRAM file system.
•
prefix-list
{
ipv4
|
ipv6
}—Copies from a prefix list (EXEC mode only).
•
rcp:
—Copies from a remote copy protocol (rcp) network server. The
syntax is
rcp:
[[[//
username@
]
location
]/
directory
]/
filename.
•
running-config
—Copies from the current system configuration.
•
tftp:
—Copies from a TFTP network server. The syntax is
tftp:
[[//
location
]/
directory
]/
filename.
•
xml-schema
—Copies the XML schema files as a tar ball file (.tar.gz)
[EXEC mode only].
destination
Filename including the directory path or network location of the file.
location
node-id
Specifies a node. The
node-id
argument is expressed in the
rack/slot/module
notation.
location
all
Copies to all nodes.
running-config
Applies the source configuration file to the running configuration of the
system.
atomic
(Optional) Applies the changes to the running configuration only if there are
no errors