Content-type: text/html Manpage of Sbregister

Sbregister

Section: User SRB Commands (1)
Updated: Feb 2003
Index Return to Main 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|- ] .br  

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 standatard input.

The localFile and|or localDirectory can be a path name in the local file hierarchy but accessible by a SRB server throough resourceName. 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

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

Line1:resourceName Line2:srbDataName|collectionName|dataSize|dataType|filePathName thru : : : : : : LineN:srbDataName|collectionName|dataSize|dataType|filePathName LastLine:<<END>>

 

OPTIONS

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

SEE ALSO

Sregister(1), Sbload(1), Smkdir(1)


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 18:44:15 GMT, July 02, 2004