request system snapshot
Syntax
request system snapshot <partition>Description
Back up the currently running and active file system partitions on the router to standby partitions that are not running. Specifically, the root file system (
/) is backed up to/altrootand/configis backed up to/altconfig. The root and/configfile systems are on the router's flash drive, and the/altrootand/altconfigfile systems are on the router's hard drive.
You cannot issue the
request system snapshotcommand when you enable flash disk mirroring. We recommend that you disable flash disk mirroring when you upgrade or downgrade the software. For more information, see the JUNOS Internet Software Configuration Guide: Getting Started.Options
partition—(Optional) Repartition the flash drive before a snapshot occurs. If the partition table on the flash drive is corrupted, therequest system snapshotcommand fails and reports errors.The
partitionoption is only supported for restoring the software image from the hard drive to the flash drive. You cannot issue therequest system snapshotcommand when you enable flash disk mirroring. We recommend that you disable flash disk mirroring when you upgrade or downgrade the software. For more information, see the JUNOS Internet Software Configuration Guide: Getting Started.Required Privilege Level
Output Fields
unmount—Unmounting a file system.Sample Output: request system snapshot
user@host> request system snapshotumount: /altroot: not currently mountedCopying / to /altroot.. (this may take a few minutes)umount: /altconfig: not currently mountedCopying /config to /altconfig.. (this may take a few minutes)The following filesystems were archived: / /configSample Output: request system snapshot when partition flag is on
user@host>request system snapshot partitionPerforming preliminary partition checks ...Partitioning ad0 ...umount: /altroot: not currently mountedCopying / to /altroot.. (this may take a few minutes)The following filesystems were archived: / /configSample Output: request system snapshot when mirroring is enabled
user@host> request system snapshotSnapshot is not possible since mirror-flash-on-disk is configured.