Ciop-copy » History » Version 3
Herve Caumont, 2013-06-18 16:26
1 | 1 | Herve Caumont | h1. Ciop-copy |
---|---|---|---|
2 | |||
3 | 2 | Herve Caumont | Command Line (CLI) reference |
4 | 1 | Herve Caumont | |
5 | 3 | Herve Caumont | {{toc}} |
6 | 1 | Herve Caumont | |
7 | h2. Name |
||
8 | |||
9 | *ciop-copy* copies the data from logical of physical location to a local directory of the sandbox |
||
10 | |||
11 | h2. Synopsys |
||
12 | |||
13 | <pre> |
||
14 | ciop-copy [-h] [-a] [-q] [-f] [-b <url-base>] [-d <driver-def>] |
||
15 | [-o|O <sink-dir>] [-w <work-dir>] [-c] [-p <prefix>] [-z|-Z] |
||
16 | [-r <num-retries>] [-t <timeout>] [-R] [-l <log-label>] [-D] |
||
17 | <url1> [<url2> ... <urlN>] |
||
18 | </pre> |
||
19 | |||
20 | URL Parameters: |
||
21 | > Arguments are URL strings provided by seurl |
||
22 | > if a parameter is specified as '-', URLs are read and inserted from standard input |
||
23 | |||
24 | h2. Description |
||
25 | |||
26 | The following options are available: |
||
27 | > -h displays this help page |
||
28 | > -a abort on first error without attempting to process further URLs |
||
29 | > -q quiet mode, local filenames are not echoed to stdout after transfer |
||
30 | > -f force transfer of a physical copy of the file for nfs and HDFS urls. |
||
31 | > -d <driver-file> get additional drivers from shell file <driver-file>. Drivers shall contain a named <protocol>Driver |
||
32 | > -o|O <out-dir> defines the output directory for transfers (default is /root) with -O the sink files or directories possibly existing in the output directory will be overwritten. |
||
33 | > -co <out-dir> same as -c -o <out-dir>. Kept for retro-compatibility. |
||
34 | > -c creates the output directory if it does not exist |
||
35 | > -p <prefix> prepend the given prefix to all output names |
||
36 | > -z provide output as a compressed package (.gz for files or .tgz for folders). NOTE that it will not compress already compressed files (.gz, .tgz or .zip) |
||
37 | > -U|--no-uzip disable file automatic decompression of .gz, .tgz and .zip files. |
||
38 | > -r <num-retries> defines the maximum number of retries (default is 5) |
||
39 | > -rt <seconds> define the time (in seconds) between retries (default is 60) |
||
40 | > -t <timeout> defines the timer (in seconds) for the watchdog timeout applicable to gridftp, scp, ftp, http, and https schemes (default is 600 seconds) |
||
41 | > -R do not retry transfer after timeout |
||
42 | > -D set debug mode for command output parsing debugging |
||
43 | > -H do not follow html and rdf tags and .uar archives. |
||
44 | > -s skip download if sink path already exists |
||
45 | > -x <pattern> exclude the files matching the pattern |
||
46 | > -w do not overwrite single files iif already exist |
||
47 | |||
48 | h2. Output |
||
49 | |||
50 | unless the quiet option is used (-q), the local path of each file (or directory) downloaded after each URL transfer is echoed, one per line unless the -U option is used, if the output file is a .gz or .tgz file it will be decompressed |
||
51 | unless the -H options is specified, the software will follow the RDF <dclite4g:onlineResource> and the HTML href and refresh tags. |
||
52 | |||
53 | h2. Exit status |
||
54 | |||
55 | > 0 all URLs were successfully downloaded |
||
56 | > 1 an error occured during processing |
||
57 | > 255 environment is invalid (e.g. invalid working directory) or invalid options are provided |
||
58 | > 254 output directory does not exist or failed creating it (with -c option) |
||
59 | |||
60 | > if the -a option is used, the exit code is set to the error code of the last URL transfer: |
||
61 | > > 252 no driver available for URL |
||
62 | > > 251 an existing file or directory conflicts with the sink for the URL in the output directory |
||
63 | > > 250 an error occured while unpacking the output file or when packaging/compressing the output file (when -z or -Z option is used) |
||
64 | > > 128 a timeout occured while fetching an url |
||
65 | > > 127 a fatal error occured, source of error is not known or not handled by driver |
||
66 | > > <128 error codes specific to the transfer scheme |
||
67 | > > 1 resource pointed by input URL does not exist |