Restoring Data from the TSM Server -- TSM Client Command Line
The following guide describes how to restore files and folders from TSM Server using TSM Client command line.
The basic syntax for restoring data from TSM is the following :
If the destination of restoration is omitted, then the TSM will restore the file to its original location.
Restoration of a Single File
To specify a directory as a destination, you need to add slash "/" at the end of the destination path of restoration. Note that the TSM may overwrite a file of the same name in the destination directory.
The following example demonstrates that the restored file will be named MyFile-rest.txt.
Restoration of Multiply Files
Multiply files can be restored using "file by file" restoration like above, or using wildcards.
- ? - for a single character substitution;
- * - for multiple characters substitution.
tsm> restore /home/john/*.txt /home/john/restore/
Restoration of Multiple Files and Folders
To restore a full directory and the contents of all its sub-directories you need to use
Restoration of Entire Partitions
Essentially, the syntax is the same as in "Restoration of Multiple Files and Folders" above. However, the obvious caveats are to ensure that you have enough space in the destination partition.
Point in Time Restoration
Here is the syntax for the restoration of a single file for specific date and time . Syntax is the same for the other cases.
There are three different types of date available for restores :
- todate - will restore all ACTIVE and INACTIVE files backed up BEFORE the date specified;
- fromdate - will restore all ACTIVE and INACTIVE files backed up AFTER the indicated date;
- pitdate - will restore only the files that were ACTIVE on the day specified.
You can use
- MM - a month
- dd - a day
- YYYY - a year
- hh - an hour
- mm - minutes
Restoration of Old or Deleted Files
As with the GUI, TSM does not, by default, list or restore old and deleted inactive versions of files and directories.
If you want to restore a such file, you need use the
Issuing a restore as below will display a pick window.
In a pick interface you will be able to select files to restore via the numbers.