Sreplicate
From SRB
| Revision as of 20:10, 17 October 2006 Jschroed (Talk | contribs) DESCRIPTION ← Previous diff |
Current revision Jschroed (Talk | contribs) DESCRIPTION |
||
| Line 8: | Line 8: | ||
| == DESCRIPTION == | == DESCRIPTION == | ||
| - | 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,one needs to be careful when performing Sget or Scat or other data movement actions; one needs to provide the replica number specifically when performing such operations. | + | 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 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. | For replicating collections, the recursive option (r) must be set. | ||
| Line 31: | Line 31: | ||
| ;-r | ;-r | ||
| - | : recursively replicating the collection. | + | : recursive replication of a collection. |
| ;-b | ;-b | ||
| - | : bulk replication of a collection recursively. | + | : bulk recursive replication of a collection. |
| ;-v | ;-v | ||
| - | : verbose mode. print out file size and transfer rate. | + | : verbose mode. prints out file size and transfer rate. |
| ;-n | ;-n | ||
| - | : replicaNum is an integer denoting the COPY of the object to be replicated. | + | : replicaNum is an integer denoting the COPY of the object to be replicated. |
| ;-P | ;-P | ||
Current revision
Contents |
NAME
Sreplicate - replicates an SRB object
SYNOPSIS
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
DESCRIPTION
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.
OPTIONS
- -h
- display command options
- -p
- prompts before replicating each object.
- -r
- recursive replication of a collection.
- -b
- bulk recursive replication of a collection.
- -v
- verbose mode. prints out file size and transfer rate.
- -n
- replicaNum is an integer denoting the COPY of the object to be replicated.
- -P
- full or relative newpathName to move the object.
- -S
- new resourcename


