Support Support Downloads Knowledge Base Juniper Support Portal Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[Junos] How to take configuration backup automatically

0

0

Article ID: KB35697 KB Last Updated: 25 Nov 2020Version: 1.0
Summary:

This article describes the different ways in which users can take backup of a configuration automatically.

 

Solution:

Below are the different ways in which users can take configuration backup automatically:

  • Backing up configuration on every commit:

user@T2_re# show system 
archival {
    configuration {
        transfer-on-commit;
        archive-sites {
            "ftp://username@10.10.10.10:21/directorylocation" password "$ABC123"; ## SECRET-DATA
        }
    }
}
  • Transferring a file after a specific interval (maximum interval: 48 hours):

user@T2_re# show system 
archival {
    configuration {
        transfer-interval 15;
        archive-sites {
            "ftp://username@10.10.10.10:21/directorylocation" password "$ABC123"; ## SECRET-DATA
        }
    }
}
  • Creating an event to take backup at a specific time:

user@T2_re# run show configuration event-options 
generate-event {
    test_jtac_event time-of-day "12:18:00 +0530";  <<<<< Create an event for a specific time.
}
policy policy_jtac {
    events test_jtac_event;
    then {
        upload filename /config/juniper.conf.gz destination ftp_server;  <<<<< Create an event-policy for the above event to upload /config/juniper.conf.gz to ftp (this is your active config).
    }
}
destinations {
    ftp_server {
        archive-sites {
            "ftp://username@10.10.10.10:21/directorylocation" password "$ABC123"; ## SECRET-DATA  <<< Specify the FTP/SCP server where you want to copy the file.
        }
    }
}

Note: If FTP is a Windows machine, there is no need to give a directory location. SFTP and SCP can also be used in place of FTP.

 

Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search