request system snapshot (Junos OS Evolved)
Syntax
request system snapshot <configuration | no-configuration> <routing-engine (both | local)>
Description
On devices running Junos OS Evolved, take a “snapshot” of the files currently used to run the device and copy the files onto the alternate solid-state drive (SSD). The snapshot contains the complete contents of the /soft, /config, and /root directories, which include the current and all rollback software images, copies of user data, the active configuration, the rescue configuration, and content from the /var directory (except the /var/core, /var/external, /var/log, and /var/tmp directories). You can then use this snapshot to boot the device at the next boot up or as a backup boot option.
Starting with Junos OS Evolved 21.2, for dual-Routing Engine systems, this command only runs on the local Routing Engine, and not on both Routing Engines in the system. Any data in the /var/home directory of the secondary disk is no longer overwritten.
After you run the request system snapshot
command, you cannot
return to the previous version of the software, because the running and backup
copies of the software are identical.
Options
none |
Take a snapshot of the local Routing Engine. |
configuration |
Copy the /config directory and the configuration stored for each installed software version to the alternate SSD as part of the snapshot. This is the default. |
no-configuration |
Do not copy the /config directory or the configuration stored for each installed software version to the alternate SSD as part of the snapshot. |
routing-engine (both | local) |
(Optional) Routing Engine on which to perform the snapshot. Supported values include:
|
Additional Information
Before you upgrade the software on the router or replace one of the Routing Engines, when you have a known stable system, issue the request system snapshot
command to back up the software, including the configuration, to the /soft directory. After you have upgraded the software or have replaced one of the Routing Engines, and are satisfied that the software packages are successfully installed and running, issue the request system snapshot
command again to back up the software to the /soft directory.
Required Privilege Level
view
Output Fields
When you enter this command, the system provides feedback on the status of your request.
Sample Output
request system snapshot (Junos OS Evolved)
user@host> request system snapshot
------------------------------- node: re0 ------------------------------- ........ Starting Snapshot in device /dev/sdb List of software versions getting copied to Snapshot... [1] junos-evo-install-ptx-x86-64-20.4-202103111254.0-EVO [2] junos-evo-install-ptx-x86-64-20.4-202103150459.0-EVO [3] junos-evo-install-ptx-x86-64-20.4-202103141559.0-EVO ........ ........ ........ ........ ........ ........ ........ ........ ........ ........ ........ ........ ........ ........ Software Snapshot completed.
Release Information
Command introduced in Junos OS Evolved Release 20.4R2.
routing-engine
both
and local
options added in Junos OS Evolved
Release 22.4R1.
configuration
and no-configuration
options added in
Junos OS Evolved Release 23.4R1.