This guide will move the configuration of Device A to Device B
Create a backup of your configuration
request system configuration rescue save
Validate the new backup
test configuration /config/rescue.conf.gz
I used scp from the device's shell (opposed to the JunOS CLI) due to permission issues
start shell
scp -JU mgmt_junos /config/rescue.conf.gz ross@10.0.1.47:~/
Login to the device (either as root, or not - you'll su -
into root later if not)
Enter the system shell
start shell
Login as root
, if not already
su -
SCP the config from your remote location
scp -JU mgmt_junos ross@10.0.1.47:~/rescue.conf.gz /config/
Exit the system shell
exit
Rollback to the rescue config
rollback rescue
Once you're sure the config is correct, commit the rescued config
commit