| 1 |
--- digup - A Digest Updating Tool --- |
| 2 |
|
| 3 |
Description |
| 4 |
|
| 5 |
digup is a tool to update md5sum or shasum digest files. It will read |
| 6 |
existing digest files, check the current directory for new, updated, |
| 7 |
modified, renamed or deleted files and query the user with a summary |
| 8 |
of changes. After reviewing the updates, they can be written back to |
| 9 |
the digest file. |
| 10 |
|
| 11 |
One of the envisioned applications of digup is to update and verify |
| 12 |
incremental archives like chronological data storages or music |
| 13 |
collections. By using digup possibly undesired changes or lost files |
| 14 |
can easily be detected while quickly adding new files. |
| 15 |
|
| 16 |
Another purpose could be to automatically verify the integrity of hard |
| 17 |
disk copies of archives, as backups to hard disks are becoming |
| 18 |
increasingly popular. Using a full file digest scan even slowly |
| 19 |
creeping bad blocks on old hard disks can be detected. By using a |
| 20 |
crontab entry, this check can be performed unattended and routinely. |
| 21 |
|
| 22 |
In normal operation only touched files with newer modification times |
| 23 |
are fully read and their digest compared. Optionally a full scan can |
| 24 |
be performed to test all file contents against their expected digests. |
| 25 |
|
| 26 |
Symbolic links are supported by either following the link and reading |
| 27 |
the target's digest or by saving only the link target path and |
| 28 |
verifying it against the old one. |
| 29 |
|
| 30 |
The digest files written by digup are compatible with those generated |
| 31 |
and read by md5sum and similar programs from the coreutils |
| 32 |
package. Additional information like file size and modification time |
| 33 |
or symlink targets are stored on comment lines. |
| 34 |
|
| 35 |
Four digest algorithms are supported: MD5, SHA1, SHA256 and |
| 36 |
SHA512. The digest file itself is also checksummed using CRC32 against |
| 37 |
unintentional changes. A fast red-black binary tree is used for the |
| 38 |
internal file list, allowing fast operation on a large number of |
| 39 |
files. |
| 40 |
|
| 41 |
Website |
| 42 |
|
| 43 |
https://panthema.net/2009/digup/ |