From SRB



Sreplicate - replicates an SRB object


Sreplicate [-n replicaNum] [-bprv] [-S resourceName] [-V versionString] [-P pathName] srbObj|collection ...

Sreplicate -I [-n replicaNum] [-S resourceName] [-V versionString] [-D dataType] [-P pathName] localFile srbObj


Sreplicate makes one more copy of srbObj or collection. The first synopsis replicates an existing SRB object. The second synopsis allows a local file to be ingested into the SRB as a replica of an existing SRB object. The replica is also registered in MCAT. The second synopsis provides for storing 'semantic replicas' as opposed to syntactic replicas done by the first synopsis. When using the symantic replicas option, care must be taken when performing Sget or Scat or other data movement actions. The replica number must be provided specifically when performing such operations.

For the first synopsis the user should have at least 'read' access permission for srbObj or collection. For the second synopsis write permission is required in the collection as well as a write permission for srbObj.

For replicating collections, the recursive option (r) must be set.

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: ~/.srb/.MdasEnv. If the resourceName is a logical resource consisting of multiple resources, only one replica will be made to one of the resources in the group. The cache type resource will be used first before the archival type resources. Unlike the Ssyncd command, an additional copy will be made even though one or more replica already exist in the resource. If a srbObject in the collection is an incontainer object then it will not be replicated. In this case, if the -v option is used, a warning is printed to stderr for every file skipped.

If given, the version of the newly created replica ia set to versionString

If given, the object is stored in pathName. Otherwise the object is stored in the default path for the resource stored in MCAT.

If given, for the second synopsis, the data type of the object is changed to dataType. The srbObj or collection arguments can be path names in the SRB collection hierarchy.


display command options
prompts before replicating each object.
recursive replication of a collection.
bulk recursive replication of a collection.
verbose mode. prints out file size and transfer rate.
replicaNum is an integer denoting the COPY of the object to be replicated.
full or relative newpathName to move the object.
new resourcename


Ssyncd, Sphymove, Smv, Scp