



Imagetofile
Use the imagetofile option with the restore image command to specify that you want to restore the source image to a file.
You might need to restore the image to a file if bad sectors are present on the target volume, or if you want to manipulate the image data. Later, you can use a data copy utility of your choice to transfer the image from the file to a disk volume.
Linux® supports
mounting an image file as a logical volume, so you can get access
to file data within the image. The following are some examples:



- The file system
/usrhas been backed up by the backup-archive client. The following command restores the file system image to the file/home/usr.img:# dsmc restore image /usr /home/usr.img -imagetofile - To mount the image file at the
/mnt/usrdirectory, the following mount command can be executed:# mount /home/usr.img /mnt/usr -o loop=/dev/loop0


Now the image contents
are available from /mnt/usr as if a regular file
system was mounted at that directory.
Supported Clients


This option is valid only for
AIX®, Oracle Solaris, and all Linux clients. The IBM® Storage Protect API does not support this option.
This option is valid for all Windows clients. The IBM Storage Protect API does
not support this option.
Syntax
Parameters
There are no parameters for this option.
Examples


Command line:


dsmc restore image /usr /home/usr.img -imagetofile
Command line:
dsmc restore image d: e:\diskD.img -imagetofile
