DAR_CP(1)

πŸ“¦
version 2.8.6 Β· 3 versions
, in alpine 3.24, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, ubuntu resolute, ubuntu stonking

πŸ’– 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_cp will 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 case dar_cp can 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 before dar_cp runs β€” which is exactly where the need for the -f option 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:

  1. 0 β€” upon normal execution (whether some corrupted parts were skipped or not) ✨
  2. 1 β€” syntax error on command-line 😭
  3. 2 β€” could not open source or destination files πŸ’€
  4. 3 β€” any other system error met during the copy 🫠
  5. 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 πŸŽ€πŸ¦‹βœ¨