Disk Image Standard selections are made either by volume drive letter, or by device id (some volumes may have no drive letter).
If the boot volume is selected (for example, c:), the API automatically includes the system volume to the backup set. You do not need to include the system volume specifically in the backup set.
Attention: For JSON to be valid, if Windows gives you, as an example, device ID \\?\Volume{40392658-0000-0000-0000-100000000000}\ (you can run mountvol, for example), the JSON needs to be escaped, resulting in, for example, \\\\?\\Volume{40392658-0000-0000-0000-100000000000}\\
Input Parameters
The following table provides the input parameters and descriptions.
Parameter | Description |
type | For Disk Image Standard backup set, the value is "Disk_Image" |
selection | Array of strings, containing one of the following:
¾ %SystemDrive% - auto includes the boot and system volumes ¾ %All% - auto includes all supported volumes, with the exception of the following:
|
exclusions | Array of strings. Items to be excluded from selection; should be used to exclude volumes or %SystemDrive% when selection is set to %All% Accepts the same input as selection (drive letters, wildcards and device ids). |
useDynamicVolumeInclusion | Boolean, optional parameter.
|
Example 1
{
"type":"Disk_Image",
"selection":[
"%SystemDrive%",
"e:",
"\\\\?\\Volume{40392658-0000-0000-0000-100000000000}\\"
]
}
Example 2
{
"type":"Disk_Image",
"selection": [ "%All%" ],
"exclusions": [ "%SystemDrive%", "E:" ]
}
Example 3
{
"type":"Disk_Image",
"selection": [ "%All%" ],
"exclusions": [ "D:" ],
"useDynamicVolumeInclusion": false
}