1DAR_CP(1) General Commands Manual DAR_CP(1)
2
3
4
6 dar_cp - 'cp' clone command that is able to copy data located after an
7 I/O error
8
10 dar_cp [-f] <source file> <destination file>
11
12 dar_cp -h
13
14 dar_cp -V
15
17 dar_cp is similar to the standard 'cp' command, except it does not stop
18 copying when an I/O error is met. Instead, it skips a bit further and
19 continues to copy the rest of the file, as much as possible, filling
20 the gaps by zeroed bytes.
21
22
23 dar_cp only accepts full filename (not directory) as argument. The rea‐
24 son of its existence in dar package is that you need it if you use
25 Parchive with dar and have a corruption on a CD-R or any other read-
26 only medium. You need to copy the corrupted slice on a read-write
27 filesystem, for Parchive be able to repair it using slice associated
28 redundancy files.
29
30
32 -h Displays help usage.
33
34 -V Displays version information.
35
36 -f without -f option, dar_cp will abort if the desti‐
37 nation file exists, this is to prevent human error.
38 However it may be useful to have a special device
39 as destination like when facing a disk corruption
40 in a unused block. dar_cp can then copy the content
41 of this disk to another one of equal or larger
42 size. But in that case the destination is also a
43 special device and has to exists before dar_cp
44 runs, where from the need of -f option. Once the
45 disk copy has finished, one can then eventually re‐
46 size partitions and file-systems to leverage the
47 new larger disk.
48
49
51 dar_cp exists with the following codes:
52
53 0 upon normal execution (be some corrupted parted skipped or
54 not)
55
56 1 syntax error on command-line
57
58 2 could not open source or destination files
59
60 3 any other system error met during the copy
61
62 5 when some data could not be copied due to I/O error
63
64
66 Any signal sent to dar_cp will abort the program immediately, there is
67 no way to have a proper termination before the end of the process
68
69
71 dar(1), dar_xform(1), dar_manager(1), dar_slave(1), dar_split(1)
72
73
75 http://sourceforge.net/p/dar/bugs/
76
77
79 http://dar.linux.free.fr/
80 Denis Corbin
81 France
82 Europe
83
84
85
863rd Berkeley Distribution June 19th, 2022 DAR_CP(1)