-
Notifications
You must be signed in to change notification settings - Fork 149
/
xrdcopy.1
330 lines (272 loc) · 8.48 KB
/
xrdcopy.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
.TH xrdcopy 1 "30 November 2012"
.SH NAME
xrdcopy - copy files
.SH SYNOPSIS
.nf
\fBxrdcopy\fR [\fIoptions\fR] \fIsource\fR \fIdestination\fR
\fIoptions\fR: [\fB--cksum\fR \fIargs\fR] [\fB--debug\fR \fIlvl\fR] [\fB--coerce\fR] [\fB--force\fR]
[\fB--help\fR] [\fB--license\fR] [\fB--nopbar\fR] [\fB--posc\fR] [\fB--proxy \fIipaddr\fB:\fIport\fR]
[\fB--recursive\fR] [\fB--retry\fR \fItime\fR] [\fB--server\fR] [\fB--silent\fR]
[\fB--sources\fR \fInum\fR] [\fB--streams\fR \fInum\fR] [\fB--tpc\fR] [\fB--verbose\fR]
[\fB--version\fR] [\fB--xrate\fR \fIrate\fR]
\fIlegacy options\fR: [\fB-adler\fR] [\fB-DS\fR\fIparm string\fR] [\fB-DI\fR\fIparm number\fR]
[\fB-md5\fR] [\fB-np\fR] [\fB-OD\fR\fIcgi\fR] [\fB-OS\fR\fIcgi\fR] [\fB-x\fR]
.fi
.br
.ad l
.SH DESCRIPTION
The \fBxrdcopy\fR 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.
.SH OPTIONS
{\fB-C | --cksum\fR} \fItype\fR[\fB:\fR{\fIvalue\fR|\fBprint\fR}]
.RS 5
obtains the checksum of \fItype\fR (i.e. adler32, crc32, or md5) from the source,
computes the checksum at the destination, and verifies that they are the same. If a \fIvalue\fR
is specified, it is used as the source checksum. When \fBprint\fR
is specified, the checksum at the destination is printed but is \fInot\fR verified.
.RE
{\fB-d\fR | \fB--debug\fR} \fIlvl\fR
.RS 5
debug level: 1 (low), 2 (medium), 3 (high)
.RE
{\fB-F\fR | --coerce}
.RS 5
ignores locking semantics on the destination file. This option may lead to
file corruption if not properly used.
.RE
{\fB-f\fR | \fB--force\fR}
.RS 5
re-creates a file if it is already present.
.RE
{\fB-h\fR | --help}
.RS 5
displays usage information.
.RE
{\fB-H\fR | --license}
.RS 5
displays license terms and conditions.
.RE
{\fB-N\fR | \fB--nopbar\fR}
.RS 5
does not display the progress bar.
.RE
{\fB-P\fR | \fB--posc\fR}
.RS 5
requests POSC (persist-on-successful-close) processing
to create a new file. Files are automatically deleted should they not be
successfully closed.
.RE
{\fB-D\fR | \fB--proxy\fR} \fIproxyaddr\fB:\fIproxyport\fR
.RS 5
use \fIproxyaddr\fB:\fIproxyport\fR as a SOCKS4 proxy. Only numerical addresses are supported.
.RE
{\fB-r\fR | \fB--recursive\fR}
.RS 5
recursively copy all files starting at the given source directory. This option is
\fIonly\fR supported for local files.
.RE
\fB--server\fR
.RS 5
runs as if in a server environment. Used only for server-side
third party copy support.
.RE
{\fB-s\fR | \fB--silent\fR}
.RS 5
neither produces summary information nor displays the progress bar.
.RE
{\fB-y\fR | \fB--sources\fR} \fInum\fR
.RS 5
uses up to \fInum\fR sources to copy the file.
.RE
{\fB-S\fR | \fB--streams\fR} \fInum\fR
.RS 5
uses \fInum\fR additional parallel streams to do the transfer.
The maximum value is 15. The default is 0 (i.e., use only the main stream).
.RE
\fB--tpc\fR
.RS 5
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.
.RE
{\fB-v\fR | \fB--verbose\fR}
.RS 5
displays summary output.
.RE
{\fB-V\fR | \fB-version\fR}
.RS 5
displays version information and immediately exits.
.RE
{\fB-X\fR | \fB--xrate\fR} \fIrate\fR
.RS 5
limits the copy speed to the specified \fIrate\fB. The rate may be qualified
with the letter \fBk\fR, \fBm\fR, or \fBg\fR to indicate kilo, mega, or giga
bytes, respectively. The option only applies when the source or destination is
local.
.SH LEGACY OPTIONS
Legacy options are provided for backward compatability. These are now
deprecated and should be avoided.
.RE
\fB--adler\fR
.RS 5
equivalent to "\fB--cksum adler32:print\fR".
.RE
\fB-DI\fR\fIpname numberval\fR
.RS 5
set the internal parameter \fIpname\fR with the numeric value \fInumberval\fR.
.RE
\fB-DS\fR\fIpname stringval\fR
.RS 5
set the internal parameter \fIpname\fR with the string value \fIstringval\fR.
.RE
\fB-md5\fR
.RS 5
equivalent to "\fB--cksum md5:print\fR".
.RE
\fB-np\fR
.RS 5
equivalent to "\fB--nopbar\fR".
.RE
\fB-OD\fR\fIcgi\fR
.RS 5
add cgi information \fIcgi\fR to any destination xrootd URL.
You should specify the opaque information directly on the destination URL.
.RE
\fB-OS\fR\fIcgi\fR
.RS 5
add cgi information \fIcgi\fR to any source xrootd URL.
.RE
\fB-x\fR
.RS 5
equivalent to "\fB--sources 12\fR".
.RE
.SH OPERANDS
\fIsource\fR
.RS 5
a local file, a local directory name suffixed by /, or
an xrootd URL in the form of
.ce 1
\fBxroot://[\fIuser\fB@\fR]\fIhost[\fB:\fIport\fR]\fB/\fIabsolutepath\fR
The \fIabsolutepath\fR can be a directory.
.RE
\fIdestination\fR
.RS 5
a dash (i.e. \fB-\fR) indicating stanard out, a local file, a local directory
name suffixed by /, or an xrootd URL in the form
.ce 1
\fBxroot://[\fIuser\fB@\fR]\fIhost[\fB:\fIport\fR]\fB/\fIabsolutepath\fR
The \fIabsolutepath\fR can be a directory.
.RE
.SH ENVIRONMENT
The following environment variables are supported.
.br
XRD_LOGLEVEL
.RS 5
Detemines the amout of diagnostics that should be printed. Valid values are:
\fIDump\fR, \fIDebug\fR, \fIInfo\fR, \fIWarning\fR, and \fIError\fR.
.RE
XRD_LOGFILE
.RS 5
If set, the diagnostics will be printed to the specified file instead of stderr.
.RE
XRD_LOGMASK
.RS 5
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.
.br
The log mask may as well be handled for each diagnostic level separately by
setting one or more of the following variables: \fIXRD_LOGMASK_ERROR\fR,
\fIXRD_LOGMASK_WARNING\fR, \fIXRD_LOGMASK_INFO\fR, \fIXRD_LOGMASK_DEBUG\fR,
and \fIXRD_LOGMASK_DUMP\fR. The default for each level is "All", except
for the \fIDump\fR level, where the default is "All|^PollerMsg". This means
that, at the \fIDump\fR level, all the topics but "PollerMsg" are enabled.
.br
Available topics: AppMsg, UtilityMsg, FileMsg, PollerMsg, PostMasterMsg,
XRootDTransportMsg, TaskMgrMsg, XRootDMsg, FileSystemMsg, AsyncSockMsg
.RE
XRD_CONNECTIONWINDOW
.RS 5
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.
.RE
XRD_CONNECTIONRETRY
.RS 5
Number of connection attempts that should be made (number of available connection
windows) before declaring a permanent failure.
.RE
XRD_REQUESTTIMEOUT
.RS 5
Default value for the time after which an error is declared if it was impossible
to get a response to a request.
.RE
XRD_SUBSTREAMSPERCHANNEL
.RS 5
Number of streams per session.
.RE
XRD_TIMEOUTRESOLUTION
.RS 5
Resolution for the timeout events. Ie. timeout events will be
processed only every XRD_TIMEOUTRESOLUTION seconds.
.RE
XRD_STREAMERRORWINDOW
.RS 5
Time after which the permanent failure flags are cleared out and a new connection
may be attempted if needed.
.RE
XRD_RUNFORKHANDLER
.RS 5
Determines whether the fork handlers should be enabled, making the API fork safe.
.RE
XRD_REDIRECTLIMIT
.RS 5
Maximum number of allowed redirections.
.RE
XRD_POLLERPREFERENCE
.RS 5
A comma separated list of poller implementations in order of preference. The
default is: libevent,built-in.
.RE
XRD_CLIENTMONITOR
.RS 5
Path to the client monitor library.
.RE
XRD_CLIENTMONITORPARAM
.RS 5
Additional optional parameters that will be passed to the monitoring object
on initialization.
.RE
XRD_WORKERTHREADS
.RS 5
Number of threads processing user callbacks.
.RE
XRD_CPPARALLELCHUNKS
.RS 5
Maximum number of asynchronous requests being processed by the xrdcopy command
at any given time.
.RE
XRD_CPCHUNKSIZE
.RS 5
Size of a single data chunk handled by xrdcopy.
.RE
.SH NOTES
Documentation for all components associated with \fBxrdcopy\fR can be found at
http://xrootd.org/docs.html
.SH DIAGNOSTICS
Errors yield an error message and a non-zero exit status.
.SH LICENSE
LGPL
.SH SUPPORT LEVEL
The \fBxrdcopy\fR command is supported by the xrootd collaboration.
Contact information can be found at:
.ce
http://xrootd.org/contact.html