Mac OS X operating systemsAIX operating systemsHP-UX operating systemsLinux operating systemsOracle Solaris operating systems

Retrieve data examples by using the command line

You can retrieve a single file, a group of files, or all the files in a directory or subdirectory.

When you retrieve a file, Tivoli® Storage Manager sends you a copy of that file. The archived file remains in storage.

Use the retrieve command to retrieve files from storage to your workstation. The following table shows examples of using the retrieve command.

Table 1. Command line examples of retrieving archives
Task Command Considerations
Retrieve the /home/jones/h1.doc file to its original directory. dsmc retrieve /home/jones/h1.doc If you do not specify a destination, the files are retrieved to their original location.
Retrieve the /home/jones/h1.doc file with a new name and directory. dsmc retrieve /home/jones/h1.doc /home/smith/h2.doc None.
Retrieve all files from the /home/jones directory that end with the characters .bak to the /home/smith directory. dsmc retrieve "/home/jones/*.bak" /home/smith/ None.
Retrieve the /home/jones/ch1.doc file and assign a description. dsmc retrieve /home/jones/ch1.doc -description="Chapter 1, first version" If you do not specify a description with the retrieve command, the default is Retrieve Date:x, where x is the current system date.
Use the pick option to display a list of archives from which you can select files to retrieve. dsmc retrieve "/home/jones/*" -pick None.
Retrieve a list of files that are specified in the retrievelist.txt file to their original directory. dsmc retrieve -filelist=/home/dir2/retrievelist.txt None.