Pages

Wednesday, September 20, 2017

Juniper FULL Backup Restore



Taking backup file to ftp server (ftp.tayabkhan.com) from Juniper Router:

Login to router as root

root@mx-10-Router> start shell
%
% df -h
% cd /config
% ls
% ftp ftp.tayabkhan.com
Connected to ftp.tayabkhan.com.
220 (vsFTPd 2.2.2)
Name (ftp.tayabkhan.com: root): ftpusername
331 Please specify the password.
Password: ftp-password
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> bin
200 Switching to Binary mode.
ftp> put juniper.conf.gz juniper.conf.gz-today
local: juniper.conf.gz remote: juniper.conf.gz-today
200 PORT command successful. Consider using PASV.
150 Ok to send data.
100% |********************************|  4811       00:00 ETA 226 Transfer complete.
4811 bytes sent in 0.00 seconds (2.20 MB/s)

% ls

*** Goto FTP server and find backup config file juniper.conf.gz-today

----------------------------------------------
## Restore configuration file to Juniper Router

** root Login to desired router to restore
root@mx-10-Router> start shell
%
% df -h
% cd /var/tmp
% ls
% ftp ftp.tayabkhan.com
Connected to ftp.tayabkhan.com.
220 (vsFTPd 2.2.2)
Name (ftp.tayabkhan.com: root): ftpusername
331 Please specify the password.
Password: ftp-password
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> bin
200 Switching to Binary mode.
ftp> lcd /var/tmp
Local directory now /var/tmp
ftp> get juniper.conf.gz-today
local: juniper.conf.gz-today remote: juniper.conf.gz-today
200 PORT command successful. Consider using PASV.
150 Opening BINARY mode data connection for juniper.conf.gz-today (4811 bytes).
100% |*************************************************|  4811       00:00 ETA
226 Transfer complete.
4811 bytes received in 0.00 seconds (4.09 MB/s)

ftp> exit
% cd /var/tmp
% ls
% mv 
 mv juniper.conf.gz-today /config/juniper.conf.gz
% cli
tayab@MX-10-Router> 
tayab@MX-10-Router>configure
tayab@MX-10-Router# 
** To reset all configuration (if needed) tayab@MX-10-Router# load factory-default
tayab@MX-10-Router# load replace juniper.conf.gz
tayab@MX-10-Router# commit 
*** Hard reboot needed for smooth service






No comments:

Post a Comment