Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
| en:navody:ssh:start [10.11.2017 11:16] – danecek@cesnet.cz | en:navody:ssh:start [03.03.2020 15:34] (current) – [dm* commands] remove mlazar_cesnet.cz | ||
|---|---|---|---|
| Line 22: | Line 22: | ||
| <note tip> | <note tip> | ||
| - | ==== 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 MB4_dul.dat | ||
| - | </ | ||
| - | |||
| - | Command '' | ||
| - | < | ||
| - | ~$ dmput -r MB4_ofl.dat | ||
| - | </ | ||
| - | |||
| - | Command '' | ||
| - | < | ||
| - | ~$ dmget MB4_dul.dat | ||
| - | </ | ||
| - | |||
| - | Example of listing the directory via '' | ||
| - | < | ||
| - | ~$ dmls -l | ||
| - | -rw------- | ||
| - | -rw------- | ||
| - | -rw------- | ||
| - | </ | ||
| - | |||
| - | The file status values listed via '' | ||
| - | Hodnoty stavu souboru vypisované příkazem '' | ||
| - | * 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 '' | ||
| - | < | ||
| - | ~$ dmfind folder -state OFL -exec dmget ' | ||
| - | </ | ||
| - | \\ | ||
| - | |||
| - | 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) | ||
| - | < | ||
| - | ~$ dmfind . \( -state REG -o -state DUL \) -type f -size +100 -exec dmput -r ' | ||
| - | </ | ||
| - | |||
| - | Manual pages of the commands: | ||
| - | * [[: | ||
| - | * [[: | ||
| - | * [[: | ||
| - | * [[: | ||
| - | |||
| - | ---- | ||
| ==== Executing the commands via Putty tool ==== | ==== Executing the commands via Putty tool ==== | ||