Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
Nächste ÜberarbeitungBeide Seiten der Revision
wiki:tsm_ueberblick [2011/10/13 14:51] wynekenwiki:tsm_ueberblick [2011/10/13 15:13] – [Commands] wyneken
Zeile 1: Zeile 1:
 ====== TSM Kommandozeile Überblick ====== ====== TSM Kommandozeile Überblick ======
  
-dsmc query backup '/data/*'+===== Commands =====
  
-dsmc restore "/data/*" -su=yes 
- -or-  
-dsmc restore "/data/*" /new/place/ -su=yes 
- ("/" at end is recommended) 
- ("-su" means do subdirectories" 
  
-It looks like using dsmc interactively will wait for tape mounts but otherwise it won't. Maybe there's an option to use?+  * List contents of backup:
  
--tapeprompt=no (default) +  dsmc query backup '/data/*'
- - means that it will wait +
- - yes means you will be prompted+
  
--replace+  * Restore files with directory recursion to __original__ location: 
-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. +  dsmc restore "/data/*" -su=yes 
- 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. +"-su" stands for subdirectories. 
- 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. +  * Restore files recursively to a __different__ location: 
- No + 
-Existing files are not overwritten. No prompts will be displayed.+  dsmc restore "/data/*" /different/location/ -su=yes 
 + 
 +The "/" at end of the new location is mandatory. 
 + 
 +===== Options ===== 
 + 
 +  * 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: 
 + 
 +<code> 
 +  -tapeprompt=no 
 +</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. 
 + 
 +  * Specify what to do when trying to restore to an existing file with: 
 + 
 +<code> 
 +-replace=xxx 
 +</code> 
 + 
 +The possibilities are: 
 + 
 +  * 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. 
 +  AllAll 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. 
 +  YesAny 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. 
 +  NoExisting 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

QR-Code
QR-Code TSM Kommandozeile Überblick (erstellt für aktuelle Seite)