xrdcp (1) - Linux Manuals
xrdcp: copy files
NAME
xrdcp - copy filesSYNOPSIS
xrdcp [options] source destination options: [--cksum args] [--debug lvl] [--coerce] [--force] [--help] [--license] [--nopbar] [--posc] [--proxy ipaddr:port] [--recursive] [--retry time] [--server] [--silent] [--sources num] [--streams num] [--tpc first|only] [--verbose] [--version] [--xrate rate] [--zip file] legacy options: [-adler] [-DSparm string] [-DIparm number] [-md5] [-np] [-ODcgi] [-OScgi] [-x]
DESCRIPTION
The xrdcp utility copies one or more files from one location to another. The data source and destination may be a local or remote file or directory. Additionally, the data source may also reside on multiple servers.OPTIONS
-C | --cksum type[:value|print|source]-
obtains the checksum of type (i.e. adler32, crc32, or md5) from the source,
computes the checksum at the destination, and verifies that they are the same. If a value
is specified, it is used as the source checksum. When print
is specified, the checksum at the destination is printed but is not verified.
-
debug level: 1 (low), 2 (medium), 3 (high)
-
ignores locking semantics on the destination file. This option may lead to
file corruption if not properly used.
-
re-creates a file if it is already present.
-
displays usage information.
-
displays license terms and conditions.
-
does not display the progress bar.
-
requests POSC (persist-on-successful-close) processing
to create a new file. Files are automatically deleted should they not be
successfully closed.
-
[NOT YET IMPLEMENTED]
use proxyaddr:proxyport as a SOCKS4 proxy. Only numerical addresses are supported.
-
recursively copy all files starting at the given source directory. This option is
only supported for local files.
-
runs as if in a server environment. Used only for server-side
third party copy support.
-
neither produces summary information nor displays the progress bar.
-
[NOT YET IMPLEMENTED]
uses up to num sources to copy the file.
-
uses num additional parallel streams to do the transfer.
The maximum value is 15. The default is 0 (i.e., use only the main stream).
-
copies the file from remote server to remote server using third-party-copy
protocol (i.e., data flows from server to server). The source and destination
servers must support third party copies. Additional security restrictions
may apply and may cause the copy to fail if they cannot be satisfied.
Argument 'first' tries tpc and if it fails, does a normal copy;
while 'only' fails the copy unless tpc succeeds.
-
displays summary output.
-
displays version information and immediately exits.
-
copy given file from a ZIP archive.
-
[NOT YET IMPLEMENTED]
limits the copy speed to the specified rate. The rate may be qualified with the letter k, m, or g to indicate kilo, mega, or giga bytes, respectively. The option only applies when the source or destination is local.
LEGACY OPTIONS
Legacy options are provided for backward compatability. These are now deprecated and should be avoided. -adler-
equivalent to "--cksum adler32:source".
-
set the internal parameter pname with the numeric value numberval.
-
set the internal parameter pname with the string value stringval.
-
equivalent to "--cksum md5:source".
-
equivalent to "--nopbar".
-
add cgi information cgi to any destination xrootd URL.
You should specify the opaque information directly on the destination URL.
-
add cgi information cgi to any source xrootd URL.
-
equivalent to "--sources 12".
OPERANDS
source-
a dash (i.e. -) indicating stanard in, a local file, a local directory name suffixed by /, or
an xrootd URL in the form of
xroot://[user@]host[:port]/absolutepath The absolutepath can be a directory.
-
a dash (i.e. -) indicating stanard out, a local file, a local directory
name suffixed by /, or an xrootd URL in the form
xroot://[user@]host[:port]/absolutepath The absolutepath can be a directory.
ENVIRONMENT
The following environment variables are supported. They apply to xrdfs and any other application using the libXrdCl library, unless specified otherwise. The text in the brackets is a name of the corresponding xrdcp commandline parameter.XRD_LOGLEVEL
- Detemines the amout of diagnostics that should be printed. Valid values are: Dump, Debug, Info, Warning, and Error.
XRD_LOGFILE
- If set, the diagnostics will be printed to the specified file instead of stderr.
XRD_LOGMASK
-
Determines which diagnostics topics should be printed at all levels. It's a
"|" separated list of topics. The first element may be "All" in which case
all the topics are enabled and the subsequent elements may turn them off, or
"None" in which case all the topics are disabled and the subsequent flags may
turn them on. If the topic name is prefixed with "^", then it means that
the topic should be disabled. If the topic name is not prefixed, then it means
that the topic should be enabled.
The log mask may as well be handled for each diagnostic level separately by setting one or more of the following variables: XRD_LOGMASK_ERROR, XRD_LOGMASK_WARNING, XRD_LOGMASK_INFO, XRD_LOGMASK_DEBUG, and XRD_LOGMASK_DUMP. The default for each level is "All", except for the Dump level, where the default is "All|^PollerMsg". This means that, at the Dump level, all the topics but "PollerMsg" are enabled.
Available topics: AppMsg, UtilityMsg, FileMsg, PollerMsg, PostMasterMsg, XRootDTransportMsg, TaskMgrMsg, XRootDMsg, FileSystemMsg, AsyncSockMsg
XRD_PARALLELEVTLOOP
- The number of event loops.
XRD_READRECOVERY
- Determines if read recovery should be enabled or disabled (enabled by default).
XRD_WRITERECOVERY
- Determines if write recovery should be enabled or disabled (enabled by default).
XRD_CONNECTIONWINDOW (-DIConnectionWindow)
- A time window for the connection establishment. A connection failure is declared if the connection is not established within the time window. If a connection failure happens earlier then another connection attempt will only be made at the beginning of the next window.
XRD_CONNECTIONRETRY (-DIConnectionRetry)
- Number of connection attempts that should be made (number of available connection windows) before declaring a permanent failure.
XRD_REQUESTTIMEOUT (-DIRequestTimeout)
- Default value for the time after which an error is declared if it was impossible to get a response to a request.
XRD_STREAMTIMEOUT (-DIStreamTimeout)
- Default value for the time after which a connection error is declared (and a recovery attempted) if there are unfulfilled requests and there is no socket activity or a registered wait timeout.
XRD_SUBSTREAMSPERCHANNEL (-DISubStreamsPerChannel)
- Number of streams per session.
XRD_TIMEOUTRESOLUTION (-DITimeoutResolution)
- Resolution for the timeout events. Ie. timeout events will be processed only every XRD_TIMEOUTRESOLUTION seconds.
XRD_STREAMERRORWINDOW (-DIStreamErrorWindow)
- Time after which the permanent failure flags are cleared out and a new connection may be attempted if needed.
XRD_RUNFORKHANDLER (-DIRunForkHandler)
- Determines whether the fork handlers should be enabled, making the API fork safe.
XRD_REDIRECTLIMIT (-DIRedirectLimit)
- Maximum number of allowed redirections.
XRD_POLLERPREFERENCE (-DSPollerPreference)
- A comma separated list of poller implementations in order of preference. The default is: built-in.
XRD_CLIENTMONITOR (-DSClientMonitor)
- Path to the client monitor library.
XRD_CLIENTMONITORPARAM (-DSClientMonitorParam)
- Additional optional parameters that will be passed to the monitoring object on initialization.
XRD_WORKERTHREADS (-DIWorkerThreads)
- Number of threads processing user callbacks.
XRD_CPPARALLELCHUNKS (-DICPParallelChunks)
- Maximum number of asynchronous requests being processed by the xrdcp command at any given time.
XRD_CPCHUNKSIZE (-DICPChunkSize)
- Size of a single data chunk handled by xrdcp.
XRD_NETWORKSTACK (-DSNetworkStack)
-
The network stack that the client should use to connect to the server. Possible
values are:
IPAuto - automatically detect which IP stack to use
IPAll - use IPv6 stack (AF_INET6 sockets) and both IPv6 and IPv4 (mapped to IPv6) addresses
IPv6 - use only IPv6 stack and addresses
IPv4 - use only IPv4 stack (AF_INET sockets) and addresses
IPv4Mapped6 - use IPv6 stack and mapped IPv4 addresses
XRD_DATASERVERTTL (-DIDataServerTTL)
- Time period after which an idle connection to a data server should be closed.
XRD_LOADBALANCERTTL (-DILoadBalancerTTL)
- Time period after which an idle connection to a manager or a load balancer should be closed.
XRD_APPNAME (-DSAppName)
- Override the application name reported to the server.
XRD_PLUGINCONFDIR
- A custom location containing client plug-in config files.
XRD_PLUGIN
- A default client plug-in to be used.
XRD_CPINITTIMEOUT (-DICPInitTimeout)
- Maximum time allowed for the copy process to initialize, ie. open the source and destination files.
XRD_CPTPCTIMEOUT (-DICPTPCTimeout)
- Maximum time allowed for a third-party copy operation to finish.
XRD_TCPKEEPALIVE (-DITCPKeepAlive)
- Enable/Disable the TCP keep alive functionality
XRD_TCPKEEPALIVETIME (-DITCPKeepAliveTime)
- Time between last data packet sent and the first keepalive probe (Linux only)
XRD_TCPKEEPALIVEINTERVAL (-DITCPKeepAliveInterval)
- Interval between subsequent keepalive probes (Linux only)
XRD_TCPKEEPALIVEPROBES (-DITCPKeepProbes)
- Number of unacknowledged probes before considering the connection dead (Linux only)
XRD_METALINKPROCESSING
- Enable/Disable Metalink processing (enabled by default)
XRD_LOCALMETALINKFILE
- Enable/Disable local Metalink file processing (by convention the following URL schema has to be used: root://localfile//path/filename.meta4)
XRD_GLFNREDIRECTOR
- The redirector will be used as a last resort if the GLFN tag is specified in a Metalink file.
NOTES
Documentation for all components associated with xrdcp can be found at http://xrootd.org/docs.htmlDIAGNOSTICS
Errors yield an error message and a non-zero exit status.LICENSE
LGPLSUPPORT LEVEL
The xrdcp command is supported by the xrootd collaboration. Contact information can be found at: