Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
rdms:access:linux:icommands [2025/03/17 15:40] – changed username@rug.nl to <emailadress> jelterdms:access:linux:icommands [2025/04/09 07:31] (current) – added info on metadata giulio
Line 690: Line 690:
 </code> </code>
 </hidden>\\ </hidden>\\
 +
 +**How to manage files in the RDMS trash folder**\\
 +Files that have been deleted either from the web interface or using ''irm'' are not permanently removed from the system, but are stored in the ''trash'' folder of the RDMS. Should you wish to empty your ''trash'' folder, you can simply run the ''irmtrash'' command without any further parameter.
 +
 +If instead you wish to restore files in the ''trash'' folder, you can do so by running these lines in iCommands:
 +<hidden>
 +<code>
 +#To locate a file in the trash folder, you will need to know the filename:
 +$ ilocate -t <filename>  
 +
 +# where the -t switch indicates to search in trash. Copy the path given by ilocate, then run any of the suggested commands.
 +
 +# To move the file out of the trash folder (and preserve previously attached metadata):
 +$ imv <logical path(s) from ilocate> <path to RDMS destination folder>
 +
 +# To restore a copy of the file present in the trash folder (without previously attached metadata):
 +$ icp <logical path(s) from ilocate> <path to RDMS destination folder>
 +
 +# To download a copy of the file to a folder on your local system (without previously attached metadata):
 +$ iget <logical path(s) from ilocate> <path to local destination folder>
 +
 +</code>
 +</hidden>\\
 +
 +You can also use the **RDMS web interface to restore a file** from the ''trash''. If you would prefer to use the web interface for this operation, please refer to the section of the wiki [[https://wiki.hpc.rug.nl/rdms/webapp/databrowser#how_to_restore_deleted_files|How to restore deleted files]].
 +
 **Working with Metadata**\\ **Working with Metadata**\\
 The ''iCommands'' can be also used to add metadata to a file/folder, list already existing metadata, modify existing metadata, and also query (search) for objects that contain certain metadata.  The ''iCommands'' can be also used to add metadata to a file/folder, list already existing metadata, modify existing metadata, and also query (search) for objects that contain certain metadata.