Copying files

Use the copy command to upload or download an image file, configuration file, or other file types to or from a flash card or a TFTP server.

The scp command copies files between hosts on a network. It uses SSH for data transfer, and uses the same authentication and provides the same security as SSH.

The source file for the scp command must be local. The file must reside on the router. The destination file has to be of the format: user@host:file-name. The destination does not need to be local.

Use the following CLI syntax to copy files:

file> 
    copy source-file-url dest-file-url [force]
    scp local-file-url destination-file-url [router router name | service-id] [force]

Example: Command syntax usage

Example: A:ALA-1>file cf1:\ # copy 104.cfg cf1:\test1\test2\test3\test.cfg
A:ALA-1>file cf1:\ # scp file1 admin@192.168.x.x:cf1:\file1 
A:ALA-1>file cf1:\ # scp file2 user2@192.168.x.x:/user2/file2 
A:ALA-1>file cf1:\ # scp cf1:/file3 admin@192.168.x.x:cf1:\file3