1 |
Summary: Data recovery tool |
2 |
Name: ddrescue |
3 |
Version: 1.17 |
4 |
Release: %mkrel 1 |
5 |
License: GPLv3+ |
6 |
Group: System/Kernel and hardware |
7 |
Source0: http://ftp.gnu.org/gnu/ddrescue/%{name}-%{version}.tar.lz |
8 |
URL: http://www.gnu.org/software/ddrescue/ddrescue.html |
9 |
BuildRequires: lzip |
10 |
Requires(post): info-install |
11 |
Requires(preun): info-install |
12 |
|
13 |
%description |
14 |
GNU ddrescue is a data recovery tool. It copies data from one file or block |
15 |
device (hard disc, cdrom, etc) to another, trying hard to rescue data in |
16 |
case of read errors. |
17 |
|
18 |
Ddrescue does not truncate the output file if not asked to. So, every time |
19 |
you run it on the same output file, it tries to fill in the gaps. |
20 |
|
21 |
The basic operation of ddrescue is fully automatic. That is, you don't have |
22 |
to wait for an error, stop the program, read the log, run it in reverse mode. |
23 |
|
24 |
If you use the logfile feature of ddrescue, the data is rescued very |
25 |
efficiently (only the needed blocks are read). Also you can interrupt the |
26 |
rescue at any time and resume it later at the same point. |
27 |
|
28 |
Automatic merging of backups: If you have two or more damaged copies of a file, |
29 |
cdrom, etc, and run ddrescue on all of them, one at a time, with the same |
30 |
output file, you will probably obtain a complete and error-free file. This is |
31 |
so because the probability of having damaged areas at the same places on |
32 |
different input files is very low. Using the logfile, only the needed blocks |
33 |
are read from the second and successive copies. |
34 |
|
35 |
The logfile is periodically saved to disc. So in case of a crash you can |
36 |
resume the rescue with little recopying. |
37 |
|
38 |
Also, the same logfile can be used for multiple commands that copy different |
39 |
areas of the file, and for multiple recovery attempts over different subsets. |
40 |
|
41 |
Ddrescue aligns its I/O buffer to the sector size so that it can be used to |
42 |
read from raw devices. For efficiency reasons, also aligns it to the memory |
43 |
page size if page size is a multiple of sector size. |
44 |
|
45 |
%prep |
46 |
%setup -q |
47 |
|
48 |
%build |
49 |
%configure2_5x CXXFLAGS="%{optflags}" LDFLAGS="%{?ldflags}" |
50 |
%make |
51 |
|
52 |
%install |
53 |
%makeinstall_std |
54 |
|
55 |
%post |
56 |
%_install_info %{name}.info |
57 |
|
58 |
%preun |
59 |
%_remove_install_info %{name}.info |
60 |
|
61 |
%files |
62 |
%doc AUTHORS ChangeLog README |
63 |
%{_bindir}/* |
64 |
%{_infodir}/* |
65 |
%{_mandir}/*/* |