How to copy files from one location to another in a Routing Engine

Copy file from one directory to another:

In order to move files from one directory to another on a local router, use the following command:

user@host> file copy
user@host> file copy /var/log/file1.txt /var/tmp/

In this example, file file1 is copied from the /var/log directory to /var/tmp.

Copy a file from one Routing Engine to another:

On Dual Routing engine routers, copy a file from one RE to another RE, use the following command:

user@host> file copy /var/tmp/jinstall-11.2R1.7-domestic-signed.tgz re1:/var/tmp/

In this example, when run in the Master RE, the Junos image on the Master RE is copied from the /var/tmp/ directory to the /var/tmp/ directory on the Backup RE.

Leave a Reply

Your email address will not be published. Required fields are marked *