System information
12-62
Cisco SN 5428-2 Storage Router Software Configuration Guide
78-15471-01
Chapter 12 Command Line Interface Reference
copy
copy
To copy the named configuration file or script file from the specified location to the savedconfig or script
directory, or from the storage router to the specified location, use the copy command. The exchange is
via HTTP or TFTP. When copying files to the storage router, any file of the same name in the savedconfig
or script directory is overwritten.
copy http://FileUrl {savedconfig:configfilename | script:scriptfilename}
copy tftp://Location/Directory/Filename {savedconfig:configfilename | script:scriptfilename}
copy {savedconfig:configfilename | script:scriptfilename} tftp://Location/Directory/Filename
Syntax Description
Defaults None.
Command Modes Administrator.
Command History
Usage Guidelines The copy command does not affect the running or persistent configuration of the storage router or high
availability cluster. However, the restore command can be used to copy the contents of a saved
configuration file into persistent memory, while the read script command can be used to execute the
commands in a script file to modify a storage router configuration.
Because TFTP does not require a user name and password, directories and files cannot be created. When
you copy a file to a TFTP server, you must have read/write permissions for the complete file path, and
the file copied from the storage router must already exist.
FileUrl The URL (including the file name) of the configuration or script file to be
copied to the storage router, such as http://acme/~myhome/allconf.xml. (In
this example, the host name acme can be used if the ip name-server
command was previously issued.) Configuration files are transferred to the
savedconfig directory; script files are transferred to the script directory.
configfilename The name of the saved configuration file. If the file is being copied from the
storage router to a TFTP server, it must exist in the storage router
savedconfig directory.
scriptfilename The name of the saved script file. If the file is being copied from the storage
router to a TFTP server, it must exist in the storage router script directory.
Location/Directory/File
name
The name of the TFTP server and default directory, followed by the file
name. The file must currently exist in the directory. It will be overwritten
by the file copied from the storage router.
Note If the default directory is tftpboot, specify only the name of the
TFTP server and the file name.
Release Modification
3.2.1 This command was introduced.