Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

request system snapshot (Maintenance)

 

Syntax

Release Information

Command introduced in Junos OS Release 10.2.

Description

Back up the currently running and active file system partitions on the device.

Options

  • config-partition— Creates a snapshot of the configuration partition only and stores it onto the default /altconfig on the hard disk device or an /altconfig on a USB device.

  • root-partition— Creates a snapshot of the root partition only and stores it onto the default /altroot on the hard disk device or an /altroot on a USB device.

  • factory— (Optional) Specifies that only the files shipped from the factory are included in the snapshot.

  • media—(Optional) Specify the boot device the software is copied to:

    • compact-flash—Copy software to the primary compact flash drive.

    • hard-disk— Copy software to the hard disk.

    • usb— Copy software to the device connected to the USB port.

    • internal— Copy software to an internal flash drive. This is the default option.

      Note

      USB option is available on all SRX series devices; hard disk and compact-flash options are available only on SRX5800, SRX5600, and SRX5400 devices; media internal option is available only on SRX300, SRX320, SRX340, SRX345, and SRX550M devices.

    • external— Copies software to an external storage device. This option is available for the compact flash on the SRX650 Services Gateway.

  • node—(Optional) Specify the archive data and executable areas of a specific node. If you do not specify the node option, the device considers the current node as default option.

    • node-id—Specify for node (0, 1).

    • all—Specify for all nodes.

    • local—Specify for local nodes.

    • primary— Specify for primary nodes.

  • partition—(Default) Specify that the target media should be repartitioned before the backup is saved to it.

    Note

    The target media is partitioned whether or not it is specified in the command, because this is a mandatory option.

    Example: request system snapshot media usb partition

    Example: request system snapshot media usb partition factory

  • slice—(Optional) Take a snapshot of the root partition the system has currently booted from to another slice in the same media.

    • alternate—(Optional) Store the snapshot on the other root partition in the system.

    Note

    The slice option cannot be used along with the other request system snapshot options, because the options are mutually exclusive. If you use the factory, media, or partition option, you cannot use the slice option; if you use the slice option, you cannot use any of the other options.

Required Privilege Level

maintenance

List of Sample Output

request system snapshot config-partition

request system snapshot root-partition

request system snapshot media hard-disk

request system snapshot media usb (when usb device is missing

request system snapshot media compact-flash

request system snapshot partition

Output Fields

When you enter this command, you are provided feedback on the status of your request.

Sample Output

request system snapshot config-partition

user@host> request system snapshot config-partition

request system snapshot root-partition

user@host> request system snapshot root-partition

request system snapshot media hard-disk

user@host> request system snapshot media hard-disk

request system snapshot media usb (when usb device is missing

user@host> request system snapshot media usb

request system snapshot media compact-flash

user@host> request system snapshot media compact-flash

request system snapshot partition

user@host> request system snapshot partition