JunOS : How to configure automated configuration backup

By | October 26, 2014

For sure, if you are concerned about your network you will make sure that you always have a good backup of your configuration file somewhere. Fortunately, JunOS have a nice built-in backup function through FTP or SFTP. It allow you to do an automated backup at defined time interval and even more, every time you commit a change in your configuration!

To create an automated remote backup at a define interval, simply use :

set system archival configuration transfer-interval <time_in_minutes> archive-sites "sftp://<user>:<password>@<remote_sftp_server_ip>"

So if we want to do a daily backup with user “bkupusr”, password “bkuppasswd” and SFTP server destination IP “192.168.2.2”, the command would look like :

set system archival configuration transfer-interval 1440 archive-sites "sftp://bkupusr:bkuppasswd@192.168.2.2"

To create an automated remote backup every time you commit a change in your configuration, simply use :

set system archival configuration transfer-on-commit archive-sites "sftp://<user>:<password>@<remote_sftp_server_ip>"

Again, with the same example as above, the command would look like :

set system archival configuration transfer-on-commit archive-sites "sftp://bkupusr:bkuppasswd@192.168.2.2"