Commit | Line | Data |
---|---|---|
233e7676 LC |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2012 Nikita Karetnikov <nikita@karetnikov.org> | |
034cb8e7 | 3 | ;;; |
233e7676 | 4 | ;;; This file is part of GNU Guix. |
034cb8e7 | 5 | ;;; |
233e7676 | 6 | ;;; GNU Guix is free software; you can redistribute it and/or modify it |
034cb8e7 NK |
7 | ;;; under the terms of the GNU General Public License as published by |
8 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
9 | ;;; your option) any later version. | |
10 | ;;; | |
233e7676 | 11 | ;;; GNU Guix is distributed in the hope that it will be useful, but |
034cb8e7 NK |
12 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | ;;; GNU General Public License for more details. | |
15 | ;;; | |
16 | ;;; You should have received a copy of the GNU General Public License | |
233e7676 | 17 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. |
034cb8e7 NK |
18 | |
19 | (define-module (distro packages ddrescue) | |
4a44e743 | 20 | #:use-module (guix licenses) |
034cb8e7 NK |
21 | #:use-module (guix packages) |
22 | #:use-module (guix download) | |
23 | #:use-module (guix build-system gnu)) | |
24 | ||
25 | (define-public ddrescue | |
26 | (package | |
27 | (name "ddrescue") | |
28 | (version "1.16") | |
29 | (source | |
30 | (origin | |
31 | (method url-fetch) | |
32 | (uri (string-append "mirror://gnu/ddrescue/ddrescue-" | |
33 | version ".tar.gz")) | |
34 | (sha256 | |
35 | (base32 | |
36 | "1rixya7p8c4jrn4p0flf6h5dqwybrilf3hrj4r7x41h3zgjz5cvn")))) | |
37 | (build-system gnu-build-system) | |
38 | (home-page | |
39 | "http://www.gnu.org/software/ddrescue/ddrescue.html") | |
40 | (synopsis "GNU ddrescue, a data recovery tool") | |
41 | (description | |
42 | "GNU ddrescue is a data recovery tool. It copies data from one | |
43 | file or block device (hard disc, cdrom, etc) to another, trying hard to | |
44 | rescue data in case of read errors. | |
45 | ||
46 | The basic operation of ddrescue is fully automatic. That is, you don't | |
47 | have to wait for an error, stop the program, read the log, run it in | |
48 | reverse mode, etc. | |
49 | ||
50 | If you use the logfile feature of ddrescue, the data is rescued very | |
51 | efficiently (only the needed blocks are read). Also you can interrupt | |
52 | the rescue at any time and resume it later at the same point. | |
53 | ||
54 | Automatic merging of backups: If you have two or more damaged copies of | |
55 | a file, cdrom, etc, and run ddrescue on all of them, one at a time, with | |
56 | the same output file, you will probably obtain a complete and error-free | |
57 | file. This is so because the probability of having damaged areas at the | |
58 | same places on different input files is very low. Using the logfile, | |
59 | only the needed blocks are read from the second and successive copies.") | |
4a44e743 | 60 | (license gpl3+))) |