Technical data

Table Of Contents
Converged Enhanced Ethernet Command Reference 33
53-1002508-01
copy
2
copy
Copies one file to another location.
Synopsis copy source-file-url destination-file-url
Operands source-file-url Specifies location of the source file to be copied using one of the following
formats:
flash Copies from URL [flash://]filename
FTP Copies from URL ftp://[username[:password]@server/path]
SCP Copies from URL scp://[username[:password]@server/path]
destination-file-url Specifies the destination file using one of the following formats:
flash Copies to URL [flash://]filename
FTP Copies to URL ftp://[username[:password]@server/path]
SCP Copies to URL scp://[username[:password]@server/path]
running-config Copies to the current running configuration.
startup--config Copies to the current startup configuration file.
Defaults None
Command
Modes
Privileged EXEC mode
Description Use this command to copy a file to another location.
Usage
Guidelines
The following guidelines apply when using this command:
An error displays if there is no startup configuration file; for example:
switch #copy startup-config file2
% Error: No Startup-config.
Use the write memory command to add entries in the startup configuration file.
Use the write erase command to delete entries from the startup configuration file.
Examples To copy the source file to a remote machine using FTP:
switch#copy ftp://user@10.10.10.10/file1 file2
Source password[]?
To copy the source file from a remote machine using SCP:
switch#copy scp://user:password@10.10.10.10/file1 file2
To copy the source file from a local switch:
switch#copy flash://file1 file2
To copy the startup configuration file to the local switch:
switch#copy startup-config file2
Building configuration...