Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende ÜberarbeitungNächste ÜberarbeitungBeide Seiten der Revision |
wiki:tsm_ueberblick [2011/10/13 15:04] – wyneken | wiki:tsm_ueberblick [2011/10/13 15:13] – [Commands] wyneken |
---|
====== TSM Kommandozeile Überblick ====== | ====== TSM Kommandozeile Überblick ====== |
| |
| ===== Commands ===== |
| |
| |
* List contents of backup: | * List contents of backup: |
dsmc query backup '/data/*' | dsmc query backup '/data/*' |
| |
* Restore files with directory recursion to original location: | * Restore files with directory recursion to __original__ location: |
| |
dsmc restore "/data/*" -su=yes | dsmc restore "/data/*" -su=yes |
"-su" stands for subdirectories. | "-su" stands for subdirectories. |
| |
* Restore files recursively to a different location: | * Restore files recursively to a __different__ location: |
| |
dsmc restore "/data/*" /different/location/ -su=yes | dsmc restore "/data/*" /different/location/ -su=yes |
| |
The "/" at end of the new location is mandatory. | The "/" at end of the new location is mandatory. |
| |
| ===== Options ===== |
| |
* Options apparently go at the end of a command. | * Options apparently go at the end of a command. |
| |
* It looks like using dsmc interactively will wait for tape mounts but otherwise it won't. You can use the //tapeprompt// option: | * It looks like using dsmc interactively will wait for tape mounts but otherwise it won't. You can use the //tapeprompt// option: |
| |
<code> | <code> |
"No" is the default and means TSM will automatically wait for the tape to be mounted. "Yes" means TSM will ask the user whether to wait or not. | "No" is the default and means TSM will automatically wait for the tape to be mounted. "Yes" means TSM will ask the user whether to wait or not. |
| |
-replace= | * Specify what to do when trying to restore to an existing file with: |
- Prompt | |
You are prompted whether to overwrite a file that already exists on your workstation. If the existing file is read-only, you are prompted whether to overwrite it. This is the default. | <code> |
- All | -replace=xxx |
All existing files are overwritten, including read-only files. All locked files are replaced when the system is rebooted. If access to a file is denied, you are prompted to skip or overwrite the file. No action is taken on the file until there is a response to the prompt. | </code> |
- Yes | |
Any existing files are overwritten, except read-only files. If a file is read-only, you are prompted to overwrite the file or skip it. No action is taken on the file until there is a response to the prompt. If access to a file is denied, the file is skipped. | The possibilities are: |
- No | |
Existing files are not overwritten. No prompts will be displayed. | * Prompt: You are prompted whether to overwrite a file that already exists on your workstation. If the existing file is read-only, you are prompted whether to overwrite it. This is the default. |
| * All: All existing files are overwritten, including read-only files. All locked files are replaced when the system is rebooted. If access to a file is denied, you are prompted to skip or overwrite the file. No action is taken on the file until there is a response to the prompt. |
| * Yes: Any existing files are overwritten, except read-only files. If a file is read-only, you are prompted to overwrite the file or skip it. No action is taken on the file until there is a response to the prompt. If access to a file is denied, the file is skipped. |
| * No: Existing files are not overwritten. No prompts will be displayed. |
| |
dsmc set access backup "*" TOP*.PHYSIK.UNI-FREIBURG.DE root | dsmc set access backup "*" TOP*.PHYSIK.UNI-FREIBURG.DE root |