7210 SAS-MXP, R6, R12, S, SX, T BASIC SYSTEM
CONFIGURATION GUIDE RELEASE 22.9.R1
File system management
copy
Syntax
copy source-file-url dest-file-url [force]
Context
file
Platforms
Supported on all 7210 SAS platforms as described in this document, including those operating in access-
uplink mode
Description
This command copies a file or all files in a directory from a source URL to a destination URL. At least
one of the specified URLs should be a local URL. The optional wild-card (*) can be used to copy multiple
files that share a common (partial) prefix and/or (partial) suffix. When a file is copied to a destination with
the same file name, the original file is overwritten by the new file specified in the operation. The following
prompt appears if the destination file already exists:
‟Overwrite destination file (y/n)?”
For example:
To copy a file named srcfile in a directory called test on cf1 to a file called destfile in a directory
called production on cf1, the syntax is:
sr1>file cf1:\ # copy cf2-/test/srcfile/production/destfile
To FTP a file named 121201.cfg in directory mydir stored on cf1 to a network FTP server with IP
address 192.0.2.79 in a directory called backup with a destination file name of 121201.cfg, the FTP
syntax is:
copy /mydir/121201.cfg 192.0.2.79/backup/121201.cfg
Parameters
source-file-url
Specifies the location of the source file or directory to be copied.
dest-file-url
Specifies the destination of the copied file or directory.
Values
file-url — local-url | remote-url
local-url — [cflash-id/ | usb-flash-id] [file-path]
remote-url — [{ftp:// | tftp://} login:pswd@remote-locn/] [file- path]
remote-locn — [hostname | ipv4-address | ipv6-address]
ipv4-address — a.b.c.d
ipv6-address — x:x:x:x:x:x:x:x[-interface]
3HE 18197 AAAB TQZZA
© 2022 Nokia.
Use subject to Terms available at: www.nokia.com/terms/.
107
SPACER TEXT