dccp(1)
π¦ dccp β the dccp(1) girlies' edition π¦
okay bestie, so this is the dccp manual page β it lives in the General Commands Manual section, and it's here to help you copy files to and from a dCache server. no cap. let's get into it π
β¨ Name β¨
dccp β copy a file from or to a dCache server. that's it, that's the whole job, and it does it flawlessly π«Ά
β¨ Synopsis β¨
dccp [option...] <sourceUrl> <destUrl>
β¨ Arguments β¨
these two are required, like you literally cannot skip them:
sourceUrlβ the URL of the source file. the origin. the blueprint. πdestUrlβ the URL of the destination file. where it's going. its new home. π‘
β¨ Description β¨
so dccp gives you cp(1)-style functionality, but on the dCache file system. iconic behaviour, honestly.
the source has to be a single file. the destination, though? it can be flexible β a directory name or a file name, she contains multitudes β¨
- if the destination is a directory, a new file gets created in there with the same name as the source, and the contents of the source get copied over. cute, right?
- if the final destination file already exists in dCache, it will not be overwritten, and an error code will be returned. periodt. π
- files on regular file systems will always be overwritten, unless you pass the
-ioption. so likeβ¦ watch out, bestie π - if both the source and the final destination file live on a regular file system, you can use
dccpjust like you'd use thecp(1)program. slay.
β¨ Options β¨
these ones are optional (the following arguments are optional, as the original so politely puts it):
-aβ enable read-ahead functionality. look ahead, queen π-b <bufferSize>β set the read-ahead buffer size. the default value is1048570Bytes. to disable the buffer you can set this to any value below the default.dccpwill attempt to allocate the buffer size, so very large values should be used with care β she's ambitious but the memory has limits π-B <bufferSize>β set buffer size. the size of the buffer gets requested in each request, and larger buffers will be needed to saturate higher bandwidth connections. the optimum value is network dependent, ngl. too large a value β excessive memory usage. too small a value β excessive network communication. it's giving β¨balanceβ¨-d <debug level>β set the debug level.<debug level>is an integer between0and127. if the value is0then no output is generated, otherwise the value is formed by adding together one or more of the following values:1β Error messages2β Info messages4β Timing information8β Trace information16β Show stack-trace32β IO operations32β IO operations64β Thread information
yes, 32 is listed twice in the source. we are simply reporting the lore, not judging it π«Ά
-h <replyHostName>β bind the callback connection to the specific hostname interface. very specific, very demure.-Hβ show progress during file transfer. we love a progress bar, it's the main character energy of the terminal π-iβ secure mode. do not overwrite the existing files. boundaries! π-l <location>β set location for pre-stage. if the location is not specified, the local host of the door will be used. this option must be used with the-Poption β they're a package deal, iykyk π-p <first_port>:<last_port>β bind the callback data connection to the specified TCP port/range. set the port range, delimited by the:character.<first_port>is required but<last_port>is optional. so like, one is enough if that's the vibe.-Pβ pre-stage. do not copy the file to a local host, but make sure the file is on disk on the dCache server. she's not moving in, she's just visiting π-r <bufferSize>β TCP receive buffer size. the default is256K. setting it to0uses the system default value. memory useage will increase with higher values, but performance better. (that's the original's phrasing and we're keeping it fr fr β bigger number, more memory, more speed ποΈ)-s <bufferSize>β TCP send buffer size. the default is256K. setting it to0uses the system default value.-t <time>β stage timeout in seconds. this option must be used with the-Poption. again: package deal π«Ά
β¨ Examples: β¨
the moment you've all been waiting for π
to copy a file to dCache:
[user] $ dccp /etc/group dcap://example.org/pnfs/desy.de/gading/
to copy a file from dCache:
[user] $ dccp dcap://example.org/pnfs/desy.de/gading/group /tmp/
pre-stage request:
[user] $ dccp -P -t 3600 -l example.org /acs/user_space/data_file
stdin:
[user] $ tar cf - data_dir | dccp - /acs/user_space/data_arch.tar
stdout:
[user] $ dccp /acs/user_space/data_arch.tar - | tar xf -
β¨ See also β¨
cp
okay that's the whole page, bestie!! you're officially a dccp expert, no cap π
this little masterpiece is version 2.47.6, dated 22 February 2011 β a classic, a legend, an icon, and honestly? she ate. πβ¨π¦π
π¦ where this page comes from
- debian bookworm: dcap 2.47.14-1 Β· LGPL-2.0-only
- debian trixie: dcap 2.47.14-2+b1 Β· LGPL-2.0-only
- epel 10: dcap 2.47.14-7.el10_0 Β· LGPL-2.0-or-later AND BSD-3-Clause
- epel 9: dcap 2.47.14-7.el9 Β· LGPL-2.0-or-later AND BSD-3-Clause
- fedora 43: dcap 2.47.14-10.fc43 Β· LGPL-2.0-or-later AND BSD-3-Clause
- fedora 44: dcap 2.47.14-12.fc44 Β· LGPL-2.0-or-later AND BSD-3-Clause
- nixpkgs unstable: dcap 2.47.14
- ubuntu jammy: dcap 2.47.12-4 Β· LGPL-2.0-only
- ubuntu noble: dcap 2.47.14-2 Β· LGPL-2.0-only
- ubuntu resolute: dcap 2.47.14-3 Β· LGPL-2.0-only
- ubuntu stonking: dcap 2.47.14-3build1 Β· LGPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms