request system snapshot (Maintenance)
Syntax
request system snapshot <config-partition> <media (compact-flash | hard-disk | internal | usb)> <partition> <root-partition> <factory> <node (all | local | node-id | primary)> <slice (alternate) >
Description
Use this command to 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.USB option is available on all SRX Series Firewalls; 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, SRX380, 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.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.
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
Output Fields
When you enter this command, you are provided feedback on the status of your request.
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
request system snapshot config-partition
user@host> request system snapshot config-partition Doing the initial labeling... Verifying compatibility of destination media partitions... Running newfs (391MB) on hard-disk media /config partition (ad1s1e)... Copying '/dev/ad0s1e' to '/dev/ad1s1e' .. (this may take a few minutes) The following filesystems were archived: /config
request system snapshot root-partition
user@host> request system snapshot root-partition Doing the initial labeling... Verifying compatibility of destination media partitions... Running newfs (3GB) on hard-disk media / partition (ad1s1a)... Copying '/dev/ad0s1a' to '/dev/ad1s1a' .. (this may take a few minutes) The following filesystems were archived: /
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 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
Release Information
Command introduced in Junos OS Release 10.2.