Scriptinterface Product manual

Scriptinterface 
Examples of command files

Create an image of the "C" drive

Example 1:
Create an image of the "C"drive.This image will be compressed and saved whereby sectors not being imaged (those sectors that have not changed since the base image was created) will be given a hash value to check for changes in the future.The image will be compressed and split into files that have a maximum size of 650 MByte each.Once it’s successfully created, the image will be automatically validated.

<DiskImageJob version="12.0">
<command name="initialized storage devices">
<disk_devices>YES</disk_devices>
</command>
<command name="create image">
<image_type>used sector</image_type>
<compression_type>LZNT1 standard</compression_type>
<device_type>filesystem</device_type>
<image_name>E:image_20100128.xml</image_name>
<ignored_read_errors>YES</ignored_read_errors>
<driveletter>C</driveletter>
<comments>Image of the system drive</comments>
<max_image_size>650</max_image_size>
<automatically_validate_image>YES</automatically_validate_image>
<ignored_file_pattern>C:\MSO\Cache*.*</ignored_file_pattern>
<ignored_file_pattern>pagefile.sys</ignored_file_pattern>
<ignored_file_pattern>hiberfil.sys</ignored_file_pattern>
<ignored_file_pattern>System Volume Information</ignored_file_pattern>
</command>
</DiskImageJob>

Create an incremental image from the base image

Example 2:
Create an incremental image from the image "E:image20100120.omg".This image will be compressed and saved whereby sectors not being imaged (those sectors that have not changed since the base image was created) will be given a hash value to check for changes in the future.The incremental image will be named according to the date when the image is created.The parameter "automatically_overwrite_image" is set to “NO“ so that an image with the same name may not be overwritten.

<DiskImageJob version="12.0">
<command name="initialized storage devices">
<disk_devices>YES</disk_devices>
</command>
<command name="create incremental">
<device_type>filesystem</device_type>
<image_name>E:image20100120.omg</image_name>
<compression_type>LZNT1 standard</compression_type>
<new_device_type>filesystem</new_device_type>
<new_image_name>E:image_$TEMPL:(Year)$TEMPL:(Month)$TEMPL:(Day)_inc.omg</new_image_name>
<hash_unchanged_data>YES</hash_unchanged_data>
<ignored_read_errors>YES</ignored_read_errors>
<automatically_overwrite_image>NO</automatically_overwrite_image>
<max_image_size>-1</max_image_size>
<force_dismount>YES</force_dismount>
<automatically_validate_image>YES</automatically_validate_image>
<change_initial_condition>YES</change_initial_condition>
<ignored_file_pattern>hiberfil.sys</ignored_file_pattern>
<ignored_file_pattern>*.tmp</ignored_file_pattern>
<ignored_file_pattern>*.omg</ignored_file_pattern>
<ignored_file_pattern>*.~</ignored_file_pattern>
<ignored_file_pattern>System Volume Information</ignored_file_pattern>
<ignored_file>pagefile.sys</ignored_file>
</command>
</DiskImageJob>

Deleting a hard disk and creation of a partition

Example 3:
This example will supply a short illustration of the O&O DiskImage disk manager’s functionality.Hard disk "0" will first be deleted and then initialized as a Basic – MBR disk.After that, a 2 GByte partition will be created after position 32256 on the hard disk, aligned according to standard Windows disk alignment.

<DiskImageJob version="12.0">
<command name="initialized storage devices">
<disk_devices>YES</disk_devices>
</command>
<command name="clear drive">
<drivenumber>0</drivenumber>
<is_superfloppy>NO</is_superfloppy>
</command>
<command name="initialize disk">
<drivenumber>0</drivenumber>
<basic_disk>YES</basic_disk>
</command>
<command name="create partition">
<drivenumber>0</drivenumber>
<begin>32256</begin>
<size>2147483648</size>
<huge>YES</huge>
<default_windows_alignment>YES</default_windows_alignment>
</command>
</DiskImageJob>

Create a file-based backup

Example 4:
A file-based backup of the file “Documents" will be created and saved on drive "Z". The backup’s name will be based on the current date at the time of creation.

<BackupJob version="12.0">
<interaction>NO</interaction>
<stop_at_error>YES</stop_at_error>
<command name="create backup">
<backup_type>extended ZIP file backup</backup_type>
<compression_type>BZIP2 4K</compression_type>
<device_type>filesystem</device_type>
<backup_name>Z:backupsImage_$TEMPL:(Year)$TEMPL:(Month)$TEMPL:(Day).obk</backup_name>
<comments>automatisches backup via Skript</comments>
<backupset_id>{527FC970-C7BF-40C4-83BA-946CA5E62EBD}</backupset_id>
<backupset_name>BackupSet 20171006 Skript</backupset_name>
<backupset_criteria>C:\Users\Muster\Documents</backupset_criteria>
</command>
</BackupJob>