Juniper Router Configuration Backup
Today i will discuss about Juniper Router Configuration Backup procedure..If you want to back up the router’s configuration to a remote server. You can use the following command to copy the active configuration file to a server:
shahed@Jessore-CE1> file copy /config/juniper.conf.gz server1:/homes/shahed/tmp
juniper.conf.gz 100% 2127 2.1KB/s 00:00
From configuration mode, use the save command to copy the candidate configuration to your home directory on a server:
shahed@Jessore-CE1# save server1:configuration-march02
tempfile 100% 11KB 11.2KB/s 00:00
Wrote 433 lines of configuration to ‘server1:configuration-march02’
You can also save it to a file in your home directory on the router:
shahed@Jessore-CE1# save configuration-march02
Wrote 433 lines of configuration to ‘configuration-march02’
shahed@router1# run file list
Use the file show command to verify the contents:
shahed@Jessore-CE1> file list /config
The remaining configurations named juniper.conf.4.gz through juniper.conf.49.gz are in the /var/db/config directory on the router’s hard disk.
These files are also compressed.
shahed@Jessore-CE1> file list /var/db/config
Each time you commit a configuration, that configuration is named juniper.conf.gz, the existing juniper.conf.gz file is renamed juniper.conf.1.gz, and all the remaining numbered configurations from before are renumbered. This means that the JUNOS backup configuration files are continually renamed. This behavior points out one advantage of using the save command: it allows you to store the configuration in a file with a fixed name.