The basic syntax for restoring your data is dsmc restore source-file destination-filespec.
If the destination-filespec is omitted then the files will be restored to their original location. As with backup, you cannot use wildcards in directory/folder names.
By default, the software will restore the most current active version of a file.
Restoring multiple files and directories
In order to restore a full directory and the contents of all its sub-directories, you need to use the -su=yes option. It is always good practice to terminate the destination-filespec with a trailing \ (backslash) if the element in the destination-filespec is a directory.
Protect> rest "C:\My Documents\Word docs\*" "C:\My Documents\restore\" -su=yes
As this restore is wild-carded, it can be restarted if interrupted due to user input (Ctrl-C), server error or communications error. Restartable restores can be queried with q rest and will restart at the point of interruption.
Restoring entire partitions
Essentially, the syntax is the same as in 'Restoring multiple files and directories' above. However, the obvious caveats are to ensure enough space in the destination partition and to allow enough time.
Protect> rest C:\* D:\restore\ -su=yes
As above, since this restore is wild-carded it can be restarted if interrupted.
Restoring selected files
In order to specify a directory as a destination, you need a trailing \ at the end of the destination-filespec, otherwise the software may overwrite a file of the same name:
Protect> rest "C:\My Documents\Word docs\mydoc.doc" "C:\My Documents\restore\"
Or to specify a filename as the destination-filespec:
Protect> rest "C:\My Documents\Word docs\mydoc.doc" "C:\My Documents\restore\myolddoc.doc"
Restores of single files cannot be restarted if interrupted, you will need to restore the file afresh.
Restoring old and/or deleted files
As with the GUI, by default the CLI does not list or restore old and deleted inactive versions of files and directories. If you need to restore such a file, you need to use the -inactive option.
The -pick option, while not strictly necessary, causes the software to display a list of files from which to pick, allowing you to select individual files to restore using a number to the files left.
The following restore command will also provide the pick interface:
Protect> rest "C:\My Documents\projects\*" "C:\My Documents\temp\restore\" -su=yes -inactive -pick
Remember to issue the destination-filespec with the original restore command if you want to prevent overwriting current versions of files with older versions.
The basic syntax for restoring your data is dsmc restore source-file destination-filespec.
If the destination-filespec is omitted then the files will be restored to their original location. As with backup, you cannot use wildcards in directory/folder names.
By default, the software will restore the most current active version of a file.
Restoring multiple files and directories
In order to restore a full directory and the contents of all its sub-directories, you need to use the -su=yes option. It is always good practice to terminate the destination-filespec with a trailing / (slash) if the element in the destination-filespec is a directory.
Protect> rest /Users/ians/projects/hsm41test/* /Users/ians/projects/restore/ -su=yes
As this restore is wild-carded, it can be restarted if interrupted due to user input (Ctrl-C), server error or communications error. Restartable restores can be queried with q rest and will restart at the point of interruption.
Restoring entire partitions
Essentially, the syntax is the same as in 'Restoring multiple files and directories' above. However, the obvious caveats are to ensure enough space in the destination partition and to allow enough time.
Protect> rest /Users/* /tmp/restore/ -su=yes
As above, since this restore is wild-carded it can be restarted if interrupted.
Restoring selected files
In order to specify a directory as a destination, you need a trailing / at the end of the destination-filespec, otherwise the software may overwrite a file of the same name:
Protect> rest /Users/ians/myfile.txt /Users/ians/restore/
Or to specify a filename as the destination-filespec:
Protect> rest /Users/ians/myfile.txt /Users/ians/restore/myoldfile.txt
Restores of single files cannot be restarted if interrupted, you will need to restore the file afresh.
Restoring old and/or deleted files
As with the GUI, by default the CLI does not list or restore old and deleted inactive versions of files and directories. If you need to restore such a file, you need to use the -inactive option.
The -pick option, while not strictly necessary, causes the software to display a list of files from which to pick, allowing you to select individual files to restore using a number to the files left.
The following restore command will also provide the pick interface:
Protect> rest /Users/ians/projects/* /Users/ians/temp/restore/ -su=yes -inactive -pick
Remember to issue the destination-filespec with the original restore command if you want to prevent overwriting current versions of files with older versions.
The basic syntax for restoring your data is dsmc restore source-file destination-filespec.
If the destination-filespec is omitted then the files will be restored to their original location. As with backup, you cannot use wildcards in directory/folder names.
By default, the software will restore the most current active version of a file.
Restoring multiple files and directories
In order to restore a full directory and the contents of all its sub-directories, you need to use the -su=yes option. It is always good practice to terminate the destination-filespec with a trailing / (slash) if the element in the destination-filespec is a directory.
rotect> rest /home/ians/projects/hsm41test/* /home/ians/projects/restore/ -su=yes
As this restore is wild-carded, it can be restarted if interrupted due to user input (Ctrl-C), server error or communications error. Restartable restores can be queried with q rest and will restart at the point of interruption.
Restoring entire partitions
Essentially, the syntax is the same as in 'Restoring multiple files and directories' above. However, the obvious caveats are to ensure enough space in the destination partition and to allow enough time.
Protect> rest /home/* /tmp/restore/ -su=yes
As above, since this restore is wild-carded it can be restarted if interrupted.
Restoring selected files
In order to specify a directory as a destination, you need a trailing / at the end of the destination-filespec, otherwise the software may overwrite a file of the same name:
Protect> rest /home/ians/myfile.txt /home/ians/restore/
Or to specify a filename as the destination-filespec:
Protect> rest /home/ians/myfile.txt /home/ians/restore/myoldfile.txt
Restores of single files cannot be restarted if interrupted, you will need to restore the file afresh.
Restoring old and/or deleted files
As with the GUI, by default the CLI does not list or restore old and deleted inactive versions of files and directories. If you need to restore such a file, you need to use the -inactive option.
The -pick option, while not strictly necessary, causes the software to display a list of files from which to pick, allowing you to select individual files to restore using a number to the files left.
The following restore command will also provide the pick interface:
Protect> rest /home/ians/projects/* /tmp/restore/-su=yes -inactive -pick
Remember to issue the destination-filespec with the original restore command if you want to prevent overwriting current versions of files with older versions.
The basic syntax for restoring your data is dsmc restore source-file destination-filespec.
If the destination-filespec is omitted then TSM will restore the files to their original location. As with backup, you cannot use wildcards in directory/folder names.
By default, TSM will restore the most current active version of a file.
Restoring multiple files and directories
In order to restore a full directory and the contents of all its sub-directories, you need to use the -su=yes option. It is always good practice to terminate the destination-filespec with a trailing / (slash) if the element in the destination-filespec is a directory.
tsm> rest USR:ians/projects/tsm/* "USR:ians/projects/restore/" -su=yes
As this restore is wild-carded, it can be restarted if interrupted due to user input (Ctrl-C), server error or communications error. Restartable restores can be queried with q rest and will restart at the point of interruption.
Restoring entire partitions
Essentially, the syntax is the same as in 'Restoring multiple files and directories' above. However, the obvious caveats are to ensure enough space in the destination partition and to allow enough time.
tsm> rest USR:* USR:restore/ -su=yes
As above, since this restore is wild-carded it can be restarted if interrupted.
Restoring selected files
In order to specify a directory as a destination, you need a trailing / at the end of the destination-filespec, otherwise TSM may overwrite a file of the same name:
tsm> rest USR:ians/myfile.txt* "USR:ians/restore/"
Or to specify a filename as the destination-filespec:
tsm> rest USR:ians/myfile.txt* "USR:ians/restore/myoldfile.txt"
Restores of single files cannot be restarted if interrupted, you will need to restore the file afresh.
Restoring old and/or deleted files
As with the GUI, by default TSM does not list or restore old and deleted inactive versions of files and directories. If you need to restore such a file, you need to use the -inactive option.
The -pick option, while not strictly necessary, causes TSM to display a list of files from which to pick, allowing you to select individual files to restore using a number to the files left.
The following restore command will also provide the pick interface:
tsm> rest USR:ians/projects/* "USR:ians/temp/restore/" -su=yes -inactive -pick
Remember to issue the destination-filespec with the original restore command if you want to prevent overwriting current versions of files with older versions.