AIX operating systemsHP-UX operating systemsLinux operating systemsOracle Solaris operating systemsWindows operating systems

Restore Image

The restore image command restores a file system or raw volume image that was backed up using the backup image command.

The restore obtains the backup image from a Tivoli® Storage Manager server, or inside a backup set from the Tivoli Storage Manager server, when the backupsetname option is specified. This command can restore an active base image, or a point-in-time base image, with associated incremental updates.

Note:
  1. Windows operating systemsThe account that runs the Tivoli Storage Manager client must have administrator authority to successfully perform any type of image restore.
  2. AIX operating systemsHP-UX operating systemsLinux operating systemsOracle Solaris operating systemsUsing the incremental option with the restore image command to perform a dynamic image backup is not supported.
  3. If you use HSM for Windows or HSM for UNIX, and you restore a file system image backup and plan to run reconciliation, you must restore the files that were backed up after the image backup. Otherwise, migrated files that were created after the image backup expire from the HSM archive storage on the Tivoli Storage Manager server.

You can use the verifyimage option with the restore image command to specify that you want to enable detection of bad sectors on the destination target volume. If bad sectors are detected on the target volume, Tivoli Storage Manager issues a warning message on the console and in the error log.

If bad sectors are present on the target volume, you can use the imagetofile option with the restore image command to specify that you want to restore the source image to a file. Later, you can use a data copy utility of your choice to transfer the image from the file to a disk volume.

AIX operating systemsHP-UX operating systemsLinux operating systemsOracle Solaris operating systemsConsiderations:

AIX operating systemsHP-UX operating systemsLinux operating systemsOracle Solaris operating systems

Windows operating systemsConsiderations:

Windows operating systems
AIX operating systemsHP-UX operating systemsLinux operating systemsOracle Solaris operating systemsWindows operating systems

Supported Clients

AIX operating systemsHP-UX operating systemsLinux operating systemsOracle Solaris operating systemsThis command is valid for AIX®, HP-UX, all Linux clients, and Solaris.

Windows operating systemsThis command is valid for all Windows clients.

Syntax

Read syntax diagramSkip visual syntax diagram
>>-REStore Image--+------------+--+- --sourcefilespec---+------->
                  '- --options-'  '- --"sourcefilespec"-'   

>--+------------------------+----------------------------------><
   '- --destinationfilespec-'   

Parameters

sourcefilespec
Specifies the name of a source image file system to be restored. Only a single source image can be specified; you cannot use wildcard characters.
AIX operating systemsHP-UX operating systemsLinux operating systemsOracle Solaris operating systemsdestinationfilespec
AIX operating systemsHP-UX operating systemsLinux operating systemsOracle Solaris operating systemsSpecifies the name of an existing mounted file system or the path and file name to which the source file system is restored. The default is the original location of the file system.
Windows operating systemsdestinationfilespec
Windows operating systemsSpecifies the name of an existing mounted file system or the path and file name to which the source file system is restored. The default is the original location of the file system. You can restore an NTFS or ReFS file system to a FAT32 volume or vice versa.
Table 1. Restore Image command: Related options
Option Where to use
backupsetname Command line only.
AIX operating systemsHP-UX operating systemsLinux operating systemsOracle Solaris operating systemsdateformat AIX operating systemsHP-UX operating systemsLinux operating systemsOracle Solaris operating systemsClient user option file (dsm.opt) or command line.
Windows operating systemsdateformat Windows operating systemsClient option file (dsm.opt) or command line.
deletefiles Command line only.
fromnode Command line only.
AIX operating systemsHP-UX operating systemsLinux operating systemsOracle Solaris operating systemsfromowner AIX operating systemsHP-UX operating systemsLinux operating systemsOracle Solaris operating systemsCommand line only.
imagetofile Command line only.
inactive Command line only.
incremental Command line only.
noprompt Command line only.
pick Command line only.
pitdate Command line only.
pittime Command line only.
AIX operating systemsHP-UX operating systemsLinux operating systemsOracle Solaris operating systemstimeformat AIX operating systemsHP-UX operating systemsLinux operating systemsOracle Solaris operating systemsClient user option file (dsm.opt) or command line.
Windows operating systemstimeformat Windows operating systemsClient option file (dsm.opt) or command line.
verifyimage Command line only.

AIX operating systemsHP-UX operating systemsLinux operating systemsOracle Solaris operating systemsThe restore image command does not define or mount the destination file space. The destination volume must exist, must be large enough to hold the source, and if it contains a file system, must be mounted. If an image backup contains a file system, and you restore them to a different location, be aware of the following points:

Windows operating systemsThe restore image command does not define or mount the destination file space. The destination volume must exist, must be large enough to hold the source, and if it contains a file system, must be mounted. The destination volume must be mapped to a drive letter. If an image backup contains a file system, and you restore them to a different location, be aware of the following points:

Examples

AIX operating systemsHP-UX operating systemsLinux operating systemsOracle Solaris operating systemsTask
AIX operating systemsHP-UX operating systemsLinux operating systemsOracle Solaris operating systemsRestore the /home/test directory over which the logical volume is mounted, to its original location.

Command: dsmc rest image /home/test

Windows operating systemsTask
Windows operating systemsRestore the e: drive to its original location.

Command: dsmc rest image e:

AIX operating systemsHP-UX operating systemsLinux operating systemsOracle Solaris operating systemsTask
AIX operating systemsHP-UX operating systemsLinux operating systemsOracle Solaris operating systemsRestore the /home/proj directory over which the logical volume is mounted, to its original location and apply the changes from the last incremental backup of the original image that is recorded on the server. The changes include deletion of files.

Command: dsmc restore image /home/proj -incremental -deletefiles

Windows operating systemsTask
Windows operating systemsRestore the h: drive to its original location and apply the changes from the last incremental backup of the original image that is recorded on the server. The changes include deletion of files.

Command: dsmc restore image h: -incremental -deletefiles

AIX operating systemsHP-UX operating systemsLinux operating systemsOracle Solaris operating systemsTask
AIX operating systemsHP-UX operating systemsLinux operating systemsOracle Solaris operating systemsRestore the /usr file system to its original location. Use the verifyimage option to enable detection of bad sectors on the target volume.

Command: dsmc restore image /usr -verifyimage

Windows operating systemsTask
Windows operating systemsRestore the d: drive to its original location. Use the verifyimage option to enable detection of bad sectors on the target volume.

Command: dsmc restore image d: -verifyimage

AIX operating systemsHP-UX operating systemsLinux operating systemsOracle Solaris operating systemsTask
AIX operating systemsHP-UX operating systemsLinux operating systemsOracle Solaris operating systemsIf bad sectors present on the target volume, use the imagetofile option to restore the /usr file system to the /home/usr.img file to avoid data corruption.

Command: dsmc restore image /usr /home/usr.img -imagetofile

Windows operating systemsTask
Windows operating systemsIf bad sectors present on the target volume, use the imagetofile option to restore the d: drive to the e:\diskD.img file to avoid data corruption.

Command: dsmc restore image d: e:\diskD.img -imagetofile

Windows operating systemsTask
Windows operating systemsRestore the e: drive from the backup set weekly_backup_data.12345678 to its original location.

Command: restore image e: -backupsetname=weekly_backup_data.12345678