Restoring a Saved Configuration
To restore a saved configuration, perform the following tasks:
Copy Saved Files to the Router
To copy the saved configuration to the router:
- Log in to the console as root. There is no password.
Escape character is '^]'.
[Enter]
router (ttyd0)
login: root
Password: [Enter]Initially, access to the router is limited to the console port after a recovery installation. Access through the management ports and interfaces is set in the configuration. For information about accessing the router through the console port, see the administration guide for your particular router.
- Start the CLI:
# cli
- Copy the configuration file on the remote server to the
router’s /var/tmp directory:
root@host> ftp remote-server
user: username
password: password
ftp> bin
Type set to I.
ftp> get /path/file
ftp> bye
Goodbye.
Load and Commit the Configuration File
Once the saved configuration file is copied to the router, you load and commit the file:
- Start the CLI configuration mode.
user@routername> configure
Entering configuration mode
[edit]
user@host# - Load the file into the current configuration. You should
override the existing file.
user@host#
load override /var/tmp/filename
load complete - Commit the file.
user@host# commit
commit complete - Exit the CLI configuration mode.
user@host# exit
user@host> - Back up the Junos OS.
After you have installed the software on the router, committed the configuration, and are satisfied that the new configuration is successfully running, issue the request system snapshot command to back up the new software to the /altconfig file system. If you do not issue the request system snapshot command, the configuration on the alternate boot drive will be out of sync with the configuration on the primary boot drive.
The request system snapshot command causes the root file system to be backed up to /altroot, and /config to be backed up to /altconfig. The root and /config file systems are on the router’s CompactFlash card, and the /altroot and /altconfig file systems are on the router’s hard disk.
