file copy
Syntax
file copysource destinationDescription
Copy files from one place to another on the local router or between the local router and a remote system.
Options
destination—Destination of the copied file. Specify this as a URL or filename, as described in Filtering Operational Mode Command Output. 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—Source of the original file. Specify this as a URL or filename, as described in Filtering Operational Mode Command Output.Required Privilege Level
Sample Output
user@host>copy /var/tmp/rpd.core.4 berry:/c/junipero/tmp...transferring.file...... | 0 KB | 0.3 kB/s | ETA: 00:00:00 | 100%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.confThe 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