en:navody:ssh:start

Rozdíly

Zde můžete vidět rozdíly mezi vybranou verzí a aktuální verzí dané stránky.

Odkaz na výstup diff

Obě strany předchozí revize Předchozí verze
en:navody:ssh:start [10.11.2017 11:16]
danecek@cesnet.cz
en:navody:ssh:start [03.03.2020 15:34] (aktuální)
Martin Lazar [dm* commands] remove
Řádek 22: Řádek 22:
  
 <note tip>​Default umask is 022 while using SSH.</​note>​ <note tip>​Default umask is 022 while using SSH.</​note>​
-==== dm* commands ==== 
-Commands dm* are for working with files between online (file immediately accessible) and offline (high capacity medium for data, to which is accessed time to time). Command dmls writes out the file state (location), dmput moves the file from online medium to the offline. Command dmget moves the file from offline medium to the online medium. 
  
-Command ''​**dmput**''​ moves the file to the offline medium: 
-<​code>​ 
-~$ dmput MB4_dul.dat 
-</​code>​ 
- 
-Command ''​**dmput**''​ moves the file from the offline medium and at same time removes the file from the online medium: 
-<​code>​ 
-~$ dmput -r MB4_ofl.dat 
-</​code>​ 
- 
-Command ''​**dmget**''​ moves the file from offline medium back to the online medium: 
-<​code>​ 
-~$ dmget MB4_dul.dat 
-</​code>​ 
- 
-Example of listing the directory via ''​**dmls**''​ command: 
-<​code>​ 
-~$ dmls -l 
--rw------- ​ 1 user    storage ​       4194304 2012-06-22 14:17 (DUL) MB4_dul.dat 
--rw------- ​ 1 user    storage ​       4194304 2012-10-26 02:03 (OFL) MB4_ofl.dat 
--rw------- ​ 1 user    storage ​       4194304 2012-10-26 02:02 (REG) MB4_reg.dat 
-</​code>​ 
- 
-The file status values listed via ''​**dmls**''​ command are: 
-Hodnoty stavu souboru vypisované příkazem ''​**dmls**'':​ 
-  * REG  ...  File not managed by DMF (it is only on online medium) 
-  * MIG  ...  Migrating file (file is migrating to offline medium) 
-  * ARC  ...  Archiving 
-  * DUL  ...  Dual-state file (on online and offline medium) 
-  * OFL  ...  Offline file (only offline medium) 
-  * UNM  ...  Unmigrating file (file is migrating back to online medium) 
-  * NMG  ...  Nonmigratable file 
-  * PAR  ...  Partial-state file (file is partly migrated) 
-  * N/A  ...  DMF cannot determine the file's state. This may be because the file is not in a DMF-managed filesystem or because an error occurred when attempting to retrieve the file's state. 
-  * INV  ...  DMF cannot determine the file's state 
- 
-The example of gaining the file list in OFL state from the subdirectory tree ''​folder''​ and their migration (from offline media) back to HDD:: 
-<​code>​ 
-~$ dmfind folder -state OFL -exec dmget '​{}'​ \; 
-</​code>​ 
-\\ 
- 
-The example of gaining files in REG and DUL state from current directory and their migration to the offline medium (and they will be removed in the same time from online medium) 
-<​code>​ 
-~$ dmfind . \( -state REG -o -state DUL \) -type f -size +100 -exec dmput -r '​{}'​ \; 
-</​code>​ 
- 
-Manual pages of the commands: 
-  * [[:​en:​navody:​ssh:​dmls|dmls]] 
-  * [[:​en:​navody:​ssh:​dmput|dmput]] 
-  * [[:​en:​navody:​ssh:​dmget|dmget]] 
-  * [[:​en:​navody:​ssh:​dmfind|dmfind]] 
- 
----- 
 ==== Executing the commands via Putty tool ==== ==== Executing the commands via Putty tool ====
  
Poslední úprava: 03.03.2020 15:34