Backup your Juniper SRX every time you commit changes made to it
Add the following to your configuration
- Set up a location to scp your configurations to
- set up the time zone and ntp service – see my note Juniper – How to configure NTP
- Next – setup your host name:|
set system host-name SetAUniqueNameForThisDevice - set up the archiving
set system archival configuration transfer-on-commit set system archival configuration archive-sites "scp://Username@DestinationSystem:/Director/To/Put/Configs" password "MySecretPassword"
after the above command you will be promptedThe authenticity of host 'DestinationSystem (DestinationSystemIP)' can't be established. ECDSA key fingerprint is **:**:**:**:**:**:**:**:**:**:**. Are you sure you want to continue connecting (yes/no)?
type in yes, then you will get the messageWarning: Permanently added 'DestinationSystem' (ECDSA) to the list of known hosts.
- Finish by issuing the command
commit
If you are running scp/ssh on a port other than 22, change the URL as follows:
scp://user@host:port/path/to/store/config/
Where port is the non-standard ssh port you are going to use
/path/to/store/config/ must be created on the target site before using this configuration