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:58] wynekenwiki:tsm_ueberblick [2011/11/09 13:57] – [Delete files from backup and archive] wyneken
Zeile 1: Zeile 1:
 ====== TSM Kommandozeile Überblick ====== ====== TSM Kommandozeile Überblick ======
 +
 +===== Commands =====
 +
 +==== Display ====
 +
  
   * List contents of backup:   * List contents of backup:
  
   dsmc query backup '/data/*'   dsmc query backup '/data/*'
 +  
  
-  * Restore files with directory recursion to original location:+==== Back up and archive ==== 
 + 
 +  * Incremental 
 + 
 +  dsmc incr 
 + 
 +  * Archive 
 + 
 +  dsmc archive "/scratch/anna/*" -subdir=yes 
 +==== Restore and retrieve ==== 
 + 
 +The //restore// command works with files that have been backed up, //retrieve// works with files that have been archived. Otherwise the command and options are pretty much the same. 
 + 
 +  * Restore files with directory recursion to __original__ location:
  
   dsmc restore "/data/*" -su=yes   dsmc restore "/data/*" -su=yes
Zeile 11: Zeile 30:
 "-su" stands for subdirectories. "-su" stands for subdirectories.
  
-  * Restore file 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 
- ("/" at end is recommended) + 
- ("-su" means do subdirectories"+The "/" at end of the new location is mandatory. 
 + 
 +  * :!: Please note that performing several restores in a row sometimes pulls in files that were previously marked as unavailable 
 + 
 +==== Delete files from backup and archive ==== 
 + 
 +The commands are: 
 + 
 +  dsmc delete backup ... 
 +  dsmc delete archive ... 
 +   
 +The other specifications are the same as with //backup//, //archive//, //restore// and //retrieve//
 +==== Restartable restore sessions ==== 
 + 
 +  * List restartable restore sessions: 
 + 
 +  dsmc query restore 
 + 
 +  * Restart a restartable restore: 
 + 
 +  dsmc restart restore 
 + 
 +Choose for the list of restore sessions displayed. 
 + 
 +  * Cancel a restartable restore: 
 + 
 +  dsmc cancel restore 
 + 
 +Choose for the list of restore sessions displayed. 
 + 
 + 
 +==== Access ==== 
 + 
 + 
 +  * Allow access to this host's backup from other hosts: 
 + 
 +  dsmc set access backup "*TOP*.PHYSIK.UNI-FREIBURG.DE root 
 + 
 +  * Display host that have been allowed access to this host's backup. 
 + 
 +  dmsc query access 
 + 
 +  * Delete access to this host's backup from other hosts: 
 + 
 +  dmsc delete access 
 + 
 +A list of access rules is shown and the user selects which one to delete. 
 + 
 +  * Specify a different host's backup to restore from: 
 + 
 +<code> 
 +-fromnode=other-host 
 +</code> 
 + 
 + 
 +  * Do several at once to speed up recovery 
 +===== 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>
  
-It looks like using dsmc interactively will wait for tape mounts but otherwise it won'tMaybe there's an option to use?+"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.
  
--tapeprompt=no (default) +  * Specify what to do when trying to restore to an existing file with:
- - means that it will wait +
- - yes means you will be prompted+
  
--replace= +<code> 
- - Prompt +-replace=xxx 
-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 +
-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 +The possibilities are:
-delete access +
-query access +
--fromnode=other+
  
-query restore +  * Prompt (default): You are prompted whether to overwrite a file that already exists on your workstation. 
- - lists restartable sessions +  * All: All existing files are overwritten. No action is taken on the file until there is a response to the prompt. 
-cancel restore +  * Yes: Any existing files are overwritten. No action is taken on the file until there is response to the prompt. 
-restart restore +  * No: Existing files are not overwritten. No more prompts will be displayed.
-(how do you cancel restartable session?)+
  
  
-Do several at once to speed up recovery 

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