![]() |
![]() |
You can use the restore command to restore files. For information on the commands for restoring system objects, see Chapter 11, "Using Commands".
You must specify the files you want to restore and where you want to restore them. If you do not specify a destination, the files are restored to their original location. For example, to restore the c:\doc\h2.doc file to its original directory, enter:
dsmc restore c:\doc\h2.doc
To restore it under a new name, enter:
dsmc restore c:\doc\h2.doc c:\doc\h3.doc
For the purposes of this manual, the workstation name is part of the file name. Therefore, if you back up files on one workstation and you want to restore them to another workstation, you must specify a destination. This is true even if you are restoring to the same physical workstation, but the workstation has a new name. For example, to restore the c:\doc\h2.doc file to its original directory on the workstation, named star, enter:
dsmc restore c:\doc\h2.doc \\star\c$\
To restore the file to star which has now been renamed meteor, enter:
dsmc restore \\star\c$\doc\h2.doc \\meteor\c$\
You could also enter:
dsmc restore \\star\c$\doc\h2.doc c:\
This example is valid because if the workstation name is not included in the specification, the local workstation is assumed (meteor, in this case).
If the file you are restoring no longer resides on your workstation, and you have run an incremental backup since deleting the file, there is no active backup of the file on the server. In this case, use the latest option to restore the most recent backup version. If you do not want the most recent version, use the pick and inactive options to obtain a list of backups from which you can pick. For example, if you want to restore the latest version of the deleted file c:\doc\h2.doc, enter:
dsmc restore c:\doc\h2.doc -latest
If you are restoring a file to a disk with a different label than the disk from which the file was backed up, you must use the file space name (label) of the backup disk instead of the drive letter. For example, if you backed up a file from the a: drive from the diskette workathome, and you are restoring it to a diskette in the a: drive labeled extra, enter:
dsmc restore {workathome}\doc\h2.doc a:\doc\h2.doc
Add the -subdir=yes option to the command if you need to restore the files in a directory and all of its subdirectories. For example, if you are recovering an entire disk (the e: disk in this example) and restoring all the files, enter:
restore e:\ -subdir=yes