C613-50170-01 Rev B
Command Reference for x510 Series
118
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
F
ILE
AND
C
ONFIGURATION
M
ANAGEMENT
C
OMMANDS
COPY
(
FILENAME
)
copy (filename)
Overview
This command copies a file. This allows you to:
•
copy files from your device to a remote device
•
copy files from a remote device to your device
•
copy files stored on Flash memory to or from a different memory type, such
as a USB storage device
•
create two copies of the same file on your device
Syntax
copy [force] <
source-name
> <
destination-name
>
Mode
Privileged Exec
Examples
To use TFTP to copy the file “bob.key” into the current directory from the remote
server at 10.0.0.1, use the command:
awplus#
copy tftp://10.0.0.1/bob.key bob.key
To use SFTP to copy the file “new.cfg” into the current directory from a remote
server at 10.0.1.2, use the command:
awplus#
copy sftp://10.0.1.2/new.cfg bob.key
To use SCP with the username “beth” to copy the file old.cfg into the directory
config_files on a remote server that is listening on TCP port 2000, use the
command:
awplus#
copy scp://beth@serv:2000/config_files/old.cfg old.cfg
To copy the file “newconfig.cfg” onto your device’s Flash from a USB storage
device, use the command:
awplus#
copy usb:/newconfig.cfg flash:/newconfig.cfg
To copy the file “newconfig.cfg” to a USB storage device from your device’s Flash,
use the command:
awplus#
copy flash:/newconfig.cfg usb:/newconfig.cfg
Parameter
Description
force
This parameter forces the copy command to overwrite the
destination file, if it already exists, without prompting the
user for confirmation.
If you specify
force
, you can copy files to multiple AMF
nodes through a working-set.
<source-name>
The filename and path of the source file. See
on page 106 for valid syntax.
<destination-name>
The filename and path for the destination file. See
on page 106 for valid syntax.