beautypg.com

Copying within a filesystem – Allied Telesis AlliedWare Plus Operating System Version 5.4.4C (x310-26FT,x310-26FP,x310-50FT,x310-50FP) User Manual

Page 138

background image

Creating and Managing Files

Software Reference for x310 Series Switches

6.14

AlliedWare Plus

TM

Operating System - Version 5.4.4C

C613-50046-01 REV A

from your device onto a remote device, or to your device from a remote device. To
copy a file across an interface with IP configured, use the command:

To copy files across these interfaces you can use the following protocols:

«

“Copying with Hypertext Transfer Protocol (HTTP)”

«

“Copying with Trivial File Transfer Protocol (TFTP)”

«

“Copying with Secure Copy (SCP)”

«

“Copying with SSH File Transfer Protocol (SFTP)”

Copying within a filesystem

Within a directory

To copy a file within the same directory, enter Privileged Exec mode and enter the
command:

If the file already exists, the switch asks whether to overwrite it, with a message like this:

To overwrite, press the “y” key then the Enter key.

Between

directories

To copy a file to another directory within the same filesystem, enter the command:

The / after the directory name is required. Otherwise the switch displays an error
(“37: Destination file is a directory”).

The switch then prompts you for the destination filename. To give the copy a new name,
type the name at the prompt. You can include directory names in the path.

To use the same filename as the original, press the Enter key (do not press the “y” key—
that names the copy “y”).

Example

To put a copy of example.cfg into the example directory, enter the command:

The prompt and messages look like this:

awplus#

copy SOURCE-URL DESTINATION-URL

awplus#

copy <source-filename> <destination-filename>

Overwrite flash:/example.cfg? (y/n)[n]:

awplus#

copy <source-filename> <directory-name>

awplus#

copy example.cfg example/

Enter destination file name [example.cfg]:

Copying from source file, please wait...

Copying to destination file, please wait...

0: Successful operation