How To Use The dstrashcan Command
Syntax: dstrashcan [options] <list:expunge:restore> <handle+:all:expired:top>
The dstrashcan command allows the administrator to list, restore, or expunge objects that are in the
Options for dstrashcan
-f csv Filename. Exports trashcan information to a CSV file that can be captured from the console.
-r Restore. Restore the objects.
-h Help. Display command help text.
-q Quiet. Run the command in quiet mode. Suppresses all informational messages and user yes/no prompts. Assume Yes to all prompts and proceed at your own risk.
Operations for dstrashcan
list List the contents of the trashcan. The scope is determined by specifying either all (top level object handles plus its content), expired (top level expired objects), or top (top level objects).
expunge Expunge the contents of the trashcan. The scope determined by a space separated list of either object handles, all objects, or expired objects.
restore Restore the contents of the trashcan. The scope determined by a space separated list of either object handles, all objects, or expired objects. The restore destination is the original parent of the objects.
Example using dstrashcan
dstrashcan -f csv list top — displays the contents of the trashcan as a CSV file.
Solution ID: 505