Copying Files

A variety of files and file types, including image files and configuration files, can be uploaded or downloaded to and from flash cards or TFTP servers.

Use the copy command to copy files locally.

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.

# file> 
    # copy <source-file-url> <dest-file-url> [force][no-redirect][client-tls-profile <tls-profile-name>][proxy <proxy-url>]
    # scp <local-file-url> <destination-file-url> [router <router-instance>][force]
    # scp <local-file-url> <destination-file-url> [force] service <service-name>

The following displays examples of the command syntax:

A:node-2>file cf3:\ # copy 104.cfg cf1:\test1\test2\test3\test.cfg

A:node-2>file cf3:\ # scp file1 admin@192.168.0.1:cf1:\file1

A:node-2>file cf3:\ # scp file2 user2@192.168.0.1:/user2/file2

A:node-2>file cf3:\ # scp cf2:/file3 admin@192.168.0.1:cf1:\file3