![]() |
![]() |
The retrieve command obtains copies of archived files from the Tivoli Storage Manager server. You can retrieve specific files or entire directories. Use the description option to specify the descriptions assigned to the files you want to retrieve.
You can also use the pick option to display a list of your archives. From this list, you can select an archive to retrieve.
Retrieve the files into the same directory from which they were archived, or in a different directory. Tivoli Storage Manager uses the preservepath option with the subtree value as the default for restoring files. For more information, see Chapter 10, "Using Options with Commands".
If this error should occur, perform any of the following actions to correct it:
If you are using client version 3.1.0.5 or later, the workstation name is part of the file name. Therefore, if you archive files on one workstation and you want to retrieve them to another workstation, you must specify a destination. This is true even if you are retrieving to the same physical workstation, but the workstation has a new name. For example, to retrieve the c:\doc\h2.doc file to its original directory on the workstation, named star, you would enter:
dsmc retrieve c:\doc\h2.doc \\star\c$\
To retrieve the file to star which has now been renamed meteor, you would enter:
dsmc retrieve c:\doc\h2.doc \\meteor\c$\
You could also enter:
dsmc retrieve c:\doc\h2.doc \\star\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).
For Windows NT, 2000, XP, and Windows.NET clients: If you want to retrieve archives from file spaces that were renamed by the Unicode-enabled client, you must specify the source on the server and a destination on the client. For example, you archived files from your H-disk, named \\your-node\h$ prior to installing the client. After the installation, you issue the following archive command:
arc h:\logs\*.log
Before the archive takes place, the server renames the file space to \\your-node\h$_OLD. The archive continues placing the data specified in the current operation into the Unicode-enabled file space named \\your-node\h$. That file space now contains only the \logs directory and the *.log files. If you want to retrieve a file from the (old) renamed file space to its original location, you must enter both the source and destination as follows:
retrieve \\your-node\h$_OLD\docs\myresume.doc h:\docs\
Tivoli Storage Manager retrieves named streams on a file basis only. Directories in Windows 2000, XP, and Windows.NET can contain named streams. Named streams attached to a directory will always be overwritten (regardless of the value of the prompt option) during the retrieve.
When retrieving sparse files to a non-NTFS file system, set the Server communication time out value (idletimeout) to the maximum value of 255 to avoid client session timeout.
The following issues apply if more data is restored than the Microsoft disk quota allows:
Supported Clients
This command is valid for all Windows clients.
Syntax
>>-RETrieve--+----------+--+- sourcefilespec----------------+--->
'- options-' '- {filespacename}sourcefilespec-'
>--+----------------------+------------------------------------><
'- destinationfilespec-'
Parameters
For information about common options you can use with the retrieve command, see Chapter 9, Setting Processing Options.
Use the file space name if the drive label name has changed, or if you are retrieving files archived from another node with drive label names that are different from yours.
When entering the destinationfilespec please consider the following:
Examples
Command: ret c:\devel\projecta\budget.fin
Command: ret c:\devel\projecta\*.c
Command: ret {winnt}\devel\projecta\*.c
Command: ret c:\devel\*
Command: ret {abc}\proj\*.*
Command: ret c:\devel\projecta\*.c c:\newdevel\projectn\
Command: ret c:\project\* -pick
Command: ret \\your-node\h$_OLD\docs\myresume.doc h:\docs\