DAR_CP(1)
π DAR_CP π
okay bestie, gather round β this is the manual page for dar_cp, from the General Commands Manual section of your friendly neighbourhood Unix docs. It's a cp clone with main character energy. β¨
πΈ NAME πΈ
dar_cp β a cp clone command that is able to copy data located after an I/O error π
π SYNOPSIS π
dar_cp [-f] <source file> <destination file>
dar_cp -h
dar_cp -V
π¦ DESCRIPTION π¦
So dar_cp is basically the standard cp command's cooler cousin, except for one iconic little difference: it does not stop copying when it hits an I/O error. Nope. Not today. π
βοΈ Instead, it skips a bit further ahead and keeps on copying the rest of the file, as much as possible, filling the gaps by zeroed bytes. She's resilient, she's persistent, she's thriving. πͺ
dar_cp only accepts a full filename as an argument β not a directory. No folders, bestie, she doesn't do that.
And why does this thing even exist in the dar package? Great question, love that for you. You need it if you use Parchive with dar and you've got a corruption on a CD-R or any other read-only medium. You need to copy that corrupted slice onto a read-write filesystem so Parchive can repair it using the slice's associated redundancy files. That's the whole vibe. π₯
β¨ OPTIONS β¨
-hβ displays help usage. π«Ά-Vβ displays version information. π-fβ so, without-f,dar_cpwill abort if the destination file already exists. That's on purpose, bestie β it's there to prevent human error. π However, it can be genuinely useful to have a special device as the destination, like when you're facing a disk corruption in an unused block. In that casedar_cpcan copy the content of this disk to another one of equal or larger size. But then the destination is also a special device, and it has to exist beforedar_cpruns β which is exactly where the need for the-foption comes from. And once the disk copy has finished, you can then eventually resize partitions and file-systems to leverage that shiny new larger disk. Slay. π
β EXIT CODES β
dar_cp exits with the following codes:
0β upon normal execution (whether some corrupted parts were skipped or not) β¨1β syntax error on command-line π2β could not open source or destination files π3β any other system error met during the copy π«5β when some data could not be copied due to I/O error π
π SIGNALS π
Heads up, bestie β this one's serious. Any signal sent to dar_cp will abort the program immediately. There is no way to have a proper termination before the end of the process. No graceful goodbyes, no little wave. She's just gone. π
π SEE ALSO π
dar(1), dar_xform(1), dar_manager(1), dar_slave(1), dar_split(1)
π KNOWN BUGS π
https://github.com/Edrusb/DAR/issues
π AUTHOR π
http://dar.linux.free.fr/ Denis Corbin France Europe
and that's the whole page, bestie! This lil' doc came to you from the 3rd Berkeley Distribution, dated August 2nd, 2025. iconic behaviour, no cap ππ¦β¨
π¦ where this page comes from
- alpine 3.24: dar-doc 2.8.5-r0 Β· GPL-2.0-or-later
- fedora 43: dar 2.8.6-1.fc43 Β· GPL-2.0-or-later
- fedora 44: dar 2.8.4-1.fc44 Β· GPL-2.0-or-later
- fedora 44: dar 2.8.6-1.fc44 Β· GPL-2.0-or-later
- nixos 26.05: dar 2.8.2
- nixpkgs unstable: dar 2.8.6
- ubuntu resolute: dar 2.8.3-1build1 Β· GPL-2.0-only
- ubuntu stonking: dar 2.8.5-1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms