Name
copy — command
Synopsis
copysource[destination]
Description
This command allows you to copy
system
images and configuration files. You can copy files within the
router’s memory (for example, copy
running-config
startup-config),
or you can copy files to or from a TFTP server or an RCP server.
Table 15-6 shows possible values for the
source and
destination parameters. If you omit the
destination, the router will prompt you for it.
Table 15-6. Sources and destinations for the copy command
|
Sources and destinations |
Meaning |
|---|---|
|
|
The currently running configuration |
|
|
The configuration that will be loaded when the router boots |
|
|
An external TFTP server |
|
|
An external RCP server |
|
|
An external FTP server |
|
|
The router’s flash filesystem |
|
|
The router’s PCMCIA flash memory cards |
|
|
The router’s internal drives (high-end routers) |
|
|
The internal bootstrap flash memory; only on some devices (4500) |
Newer versions of IOS also permit the use of URLs. The syntax of a URL can look like this:
tftp:[[//hostname]/path]/filename ftp:[[//[username[:password]@]hostname]/path]/filename rcp:[[//[username@]hostname]/path]/filename
In each of these URLs, the hostname is
simply the hostname or IP address of the end device. TFTP
doesn’t require a username or password. FTP and RCP can have an
optional username and password, which depends on the server
configuration.
To use the URL, simply provide the correct hostname ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access