Content-type: text/html Manpage of Scp

Scp

Section: User SRB Commands (1)
Updated: Jan 2003
Index Return to Main Contents
 

NAME

Scp - copies a srbObj or srbCollection in SRB space  

SYNOPSIS

Scp [-n n] [-fprasv] [-c container] [-S newResourceName] [-P newPathName] srcObj destObj
Scp [-n n] [-fprasv] [-c container] [-S newResourceName] [-P newPathName]srcObj ... target_collection
Scp [-n n] -r[-fprasv] [-c container] [-S newResourceName] [-P newPathName] source_collection ... target_collection  

DESCRIPTION

In the first synopsis form, Scp copies a SRB srcObj to destObj. If newResourceName and/or newPathName are given the copy is made at that location. Otherwise, default resource name is used. If no newPathName is given the pathname is made using the default path name for the resource (as stored in MCAT). The copied object is registered as a new SRB object in MCAT.

In the second synopsis form, Scp copies each SRB srcObj to the target_collection. Except for "." and "..", it will return an error if the target_collection does not exist.

In the third synopsis form, Scp copies one or more source_collection recursively to the target_collection.

By default, Scp uses the parallel I/O API to do the copying. The -s option can be used to switch the I/O mode to serial.

Use Sreplicate if you want to make copies of the object in the same collection under the same name.

The user should have 'read' access permission for each SrbObj.

The srcObj argument can be a path name in the SRB collection hierarchy.

 

OPTIONS

-h
display command line options.
-p
prompts before copying each object.
-f
force copying even if object exists.
-a
If the target object does not exist and the target resource is a logical resource consisting of more than one resources, then make a copy in each resources. If the target object exists, force copying all replica of the target object.
-r
copy collections recursively.
-v
verbose mode. print out file size and transfer rate.
-n
n is an integer denoting the replica number of the object to be copied.
-c
container is the container where the target object will be stored.
-S
newResourceName is the target ResourceName.
-P
newPathName is the target PathName.
-s
switch I/O mode to serial
 

SEE ALSO

Sreplicate(1), Smv(1), Sphymove(1), Smkcont(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