Srmtrash

From SRB

Contents

NAME

Srmtrash - Purge files and collections in the "trash" directories.

SYNOPSIS

Srmtrash [-U user@domain] [-Ahu] [-t expiration_time_in_hours ] [srbObj|collection ... ]

DESCRIPTION

The new Srm command by default, will move the files and collections designated for removal into the /trash or /myZone/trash collections instead of immediate removal at the time of execution. Srmtrash purge files and/or collections that have been put into the "trash" directories. It can be used by normal users to purge their own trash or by admin users to purge system wide trash managed by the local MCAT.

A user can specify the srbObj | collection in his/her trash directories for purging. If srbObj | collection is not specified, the user's home trash collections (/trash/home/user.domain and /myZone/trash/home/user.domain) will be purged.

The -t expiration_time_in_hours option can be used to set the minimum age criteria of the trash in hours for purging. If this option is not used, by default the minimum age is set to 0 meaning all files and collections will be purged.

Admin users can use the -A option to carry out system wide purging of the trash directories. Admin users can also use the -U user@domain option to specify which user's trash directories for purging.


OPTIONS

-h
display command options
-A
Admin user mode. This option is needed for purging other user's trash. SRB admin user privilege is needed.
-u
Unregister the files in trash instead of unlinking. It is possible that the physical files in the storage vault are gone already and this option can be used to cleanup the MCAT entries. SRB admin user privilege is needed.
-U
user@domain specifies which user's trash directories for purging. Only meaningful if the -a option is used.
-t
expiration_in_hours sets the minimum age criteria of the trash in hours for purging. If this option is not used, by default the minimum age is set to 0 meaning all files and collections will be purged.

SEE ALSO

Sput, Srm, Srmdir, Sattrs