Sbregister

From SRB

Contents

NAME

Sbregister - registers in bulk one or more local files and/or directories into SRB space.

SYNOPSIS

Sbregister [-S resourceName ] localFile|localDirectory ... targetCollection

Sbregister [-f infoFileName|- ]

DESCRIPTION

Sbregister is similar to Sregister, which registers one or more local files and|or directories into SRB space. It is designed to greatly improve the efficiency of registering a large number of files by 1) registering up to several hundreds files with MCAT with a single call instead of the normal mode of registering one file at a time. 2) use of separate threads for registration.

The second synopsis reads data from a file or standard input which contains information for the files to be registered. If "-" is used after the -f option the file is read from standard input.

The localFile and|or localDirectory can be a path name in the local file hierarchy but accessible by a SRB server through resourceName (a physical resource). The user should have at least 'write' access permission for them. These inputs can have wildcards except "." and "..". If it is a directory, sub-directories will be recursively registered automatically as sub-collections.

The targetCollection is the target collection path under which the objects will be registered. The path can be relative or absolute. Also, special path name such as "." and ".." are valid.

If given, the object is stored in resourceName. Otherwise the object is stored in the default resource given by DEFRESOURCE in the user environment file, located in ~/.srb/.MdasEnv. In either case, the selected resource must be a physical resource.

The second synopsis requires the information file to be in the following format:

For registering into a physical resource -

Line1:physicalResource

For registering into a physical resource of a compound resource -

Line1:physicalResource|compoundResource

Line2:srbDataName|collectionName|dataSize|dataType|filePathName

thru  :  :  :  :  :  :

LineN:srbDataName|collectionName|dataSize|dataType|filePathName

LastLine:<<END>>

OPTIONS

-S
resourceName is the target physical resourceName.
-f
infoFileName is the file containing information about the registering files.

SEE ALSO

Sregister, Sbload, Smkdir