




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.
The account that runs the Tivoli Storage Manager client
must have administrator authority to successfully perform any type
of image restore.


Using the incremental option
with the restore image command to perform a dynamic
image backup is not supported.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.



Considerations:




Image restore is not supported for the Sun
QFS file system.
Image restore is not supported for GPFS™ file systems on Linux x86_64, Linux on POWER® and Linux on System z®.
On Linux systems,
some file systems such as ext2, ext3, ext4, btrfs, and xfs use a universally
unique identifier (UUID) to identify themselves to the operating system.
If you create an image backup of such a volume and you restore it
to a different location, you might have two volumes with the same
UUID. If you use UUID to define your file systems in /etc/fstab,
be aware that Tivoli Storage Manager might
be unable to correctly mount the restored file system because the
UUIDs conflict. To avoid this situation, restore the image to its
original location. If you must restore it to a different location,
change the UUID of either the original or restored volume before you
mount the restored file system. Refer to the Linux documentation for instructions on how
to change a UUID. You might also need to manually edit the /etc/fstab file
so the original volume, the restored volume, or both volumes can be
mounted.
Considerations:









This command
is valid for AIX®, HP-UX, all Linux clients, and Solaris.
This command is valid for all Windows clients.
>>-REStore Image--+------------+--+- --sourcefilespec---+-------> '- --options-' '- --"sourcefilespec"-' >--+------------------------+---------------------------------->< '- --destinationfilespec-'



destinationfilespec


Specifies 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.
destinationfilespec
Specifies 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.| Option | Where to use |
|---|---|
| backupsetname | Command line only. |
![]() ![]() ![]() dateformat |
![]() ![]() ![]() Client user option
file (dsm.opt) or command line. |
dateformat |
Client option file
(dsm.opt) or command line. |
| deletefiles | Command line only. |
| fromnode | Command line only. |
![]() ![]() ![]() fromowner |
![]() ![]() ![]() Command 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. |
![]() ![]() ![]() timeformat |
![]() ![]() ![]() Client user option
file (dsm.opt) or command line. |
timeformat |
Client option file
(dsm.opt) or command line. |
| verifyimage | Command line only. |



The 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:
The 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:



If the destination volume is
larger than the source, after the restore operation you lose the difference
between the sizes. The lost space can be recovered by increasing the
size of the volume, which also increases the size of the restored
volume.
If the destination volume is larger than the
source, after the restore operation you lose the difference between
the sizes. If the destination volume is on a dynamic disk, the lost
space can be recovered by increasing the size of the volume. Increasing
the size of the volume also increases the size of the restored volume.


Task


Restore the /home/test directory over which the
logical volume is mounted, to its original location. Command: dsmc rest image /home/test
Task
Restore the e: drive to its original location. Command: dsmc rest image e:



Task


Restore 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
Task
Restore 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



Task


Restore 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
Task
Restore 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



Task


If 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
Task
If 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
Task
Restore the e: drive from the backup set weekly_backup_data.12345678 to
its original location. Command: restore image e: -backupsetname=weekly_backup_data.12345678