Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

request system snapshot (Maintenance)

Syntax

request system snapshot <factory><media (compact-flash | hard-disk | internal | usb)><node (all | local | node-id | primary)><partition><slice (alternate) >

Release Information

Command introduced in Release 10.2 of Junos OS.

Description

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

Options

  • factory— (Optional) Specifies that only the files shipped from the factory are included in the snapshot.
  • media— (Optional) Specifies the media to be included in the snapshot:
    • compact-flash— Copies the snapshot to an external compact flash.
    • hard-disk— Copies the snapshot to a hard disk.
    • usb— Copies the snapshot to the USB storage device.
    • internal— Copies the snapshot to internal media. This is the default.

    Note: USB option is available on all SRX series devices; hard disk and compact-flash options are available only on high-end SRX series devices; media internal option is available only on branch SRX series devices.

  • node— (Optional) Specifies to archive the data and executable areas of a specific node.
    • node-id—Archive a specific node. The range of node ID is (0,1)
    • all—Archive all nodes.
    • local—Archive only local nodes.
    • primary—Archive only primary nodes.
  • partition - (Default) Specifies 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.
    • You cannot partition a hard-disk as it is mounted on /var directory.
  • slice— (Optional) Takes a snapshot of the root partition the system has currently booted from to another slice in the same media.
    • alternate— (Optional) Stores 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.
    • The slice partition is supported only on branch SRX Series devices.

Required Privilege Level

maintenance

List of Sample Output

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 media internal
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 media hard-disk

user@host> request system snapshot media hard-disk
Verifying compatibility of destination media partitions...
Running newfs (880MB) on hard-disk media  / partition (ad2s1a)...
Running newfs (98MB) on hard-disk media  /config partition (ad2s1e)...
Copying '/dev/ad0s1a' to '/dev/ad2s1a' .. (this may take a few minutes)
...

request system snapshot media usb (when usb device is missing

user@host> request system snapshot media usb
Verifying compatibility of destination media partitions...
Running newfs (254MB) on usb media  / partition (da1s1a)...
Running newfs (47MB) on usb media  /config partition (da1s1e)...
Copying '/dev/da0s2a' to '/dev/da1s1a' .. (this may take a few minutes)
Copying '/dev/da0s2e' to '/dev/da1s1e' .. (this may take a few minutes)
The following filesystems were archived: / /config

request system snapshot media compact-flash

user@host> request system snapshot media compact-flash
error: cannot snapshot to current boot device

request system snapshot media internal

user@host> request system snapshot media internal
error: cannot snapshot to current boot device

request system snapshot partition

user@host> request system snapshot partition
Verifying compatibility of destination media partitions...
Running newfs (439MB) on internal media  / partition (da0s1a)...
Running newfs (46MB) on internal media  /config partition (da0s1e)...
Copying '/dev/da1s1a' to '/dev/da0s1a' .. (this may take a few minutes)
Copying '/dev/da1s1e' to '/dev/da0s1e' .. (this may take a few minutes)
The following filesystems were archived: / /config

Modified: 2016-04-17