I am trying to understand if there is a simple command to copy the running config from one partition to the other and boot the SRX from that partition ?
Lets say the Active partition has been corrupted and the SRX booted up using the Backup partition, I would like to restore the config on the Active partition by copying the config file from Backup partition.
Is this the appropriate command to do that ?
request system snapshot slice altnerate
Or do we have any file copy <Source> <destination> command ?
I am assuming the config resides on /config folder of the active partition and the /altconfig of the backup partition.
In the resilient dual-root partition scheme, the /var file system is contained in a separate slice (Slice 3) from the root file systems, the /config directory is contained in its own slice (Slice 4), and switches ship from the factory with identical Junos OS images in Slice 1 and Slice 2. The /var file system, which has a greater frequency of reads and writes than the root file systems and is therefore more likely to have corruption issues, is isolated from the root directories and the /config directory. If the switch fails to boot from the active partition, the switch automatically boots from the alternate root partition and triggers an alarm.
There is no command to boot from backup partition. Backup partition is used as a recovery partition and you can not boot manually from it. If the SRX is unable to boot from the primary Junos OS image, it boots up from the backup Junos OS image in the backup root partition.