[ Contents] [ Prev] [ Next] [ Index] [ Report an Error]

file copy

Syntax

file copy source destination
<source-address address>

Release Information

Command introduced before JUNOS Release 7.4.

source-address option added in JUNOS Release 7.4.

Description

Copy files from one place to another on the local router or between the local router and a remote system.

Options

sourceSource of the original file. Specify this as a URL or filename.

destinationDestination of the copied file. Specify this as a URL or filename. If you are copying a file to the current directory (your home directory on the local router) and are not renaming the file, specify the destination with a period (.).

source-address address(Optional) Source IP host address. This option is useful for specifying the source address of a secure copy (scp) file transfer.

Required Privilege Level

maintenance

List of Sample Output

file copy (A File from the Router to a PC)
file copy (A Configuration File Between Routing Engines)
file copy (A Log File Between Routing Engines)
file copy (A File From the TX Matrix Plus Router to a T1600 Router connected to the TX Matrix Plus Router)

Output Fields

When you enter this command, you are provided feedback on the status of your request.

Sample Output

file copy (A File from the Router to a PC)

user@host> file copy /var/tmp/rpd.core.4 berry:/c/junipero/tmp
...transferring.file...... |          0 KB |   0.3 kB/s | ETA: 00:00:00 | 100%

file copy (A Configuration File Between Routing Engines)

The following sample command copies a configuration file from Routing Engine 0 to Routing Engine 1:

user@host> file copy /config/juniper.conf re1:/var/tmp/copied-juniper.conf

file copy (A Log File Between Routing Engines)

The following sample command copies a log file from Routing Engine 0 to Routing Engine 1:

user@host> file copy lcc0-re0:/var/log/chassisd lcc0-re1:/var/tmp

file copy (A File From the TX Matrix Plus Router to a T1600 Router connected to the TX Matrix Plus Router)

The following sample command copies a text file from Routing Engine 1 on the switch-fabric chassis sfc0 to Routing Engine 1 on the line-card chassis lcc0:

user@host> file copy sfc0-re1:/tmp/sample.txt lcc0-re1:/var/tmp

[ Contents] [ Prev] [ Next] [ Index] [ Report an Error]