/usr/share/doc/bup/bup-fsck.html is in bup-doc 0.29-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="generator" content="pandoc" />
<meta name="author" content="Avery Pennarun apenwarr@gmail.com" />
<meta name="date" content="2017-04-01" />
<title>bup-fsck(1) Bup debian/0.29-3</title>
<style type="text/css">code{white-space: pre;}</style>
</head>
<body>
<div id="header">
<h1 class="title">bup-fsck(1) Bup debian/0.29-3</h1>
<h2 class="author">Avery Pennarun <a href="mailto:apenwarr@gmail.com">apenwarr@gmail.com</a></h2>
<h3 class="date">2017-04-01</h3>
</div>
<h1 id="name">NAME</h1>
<p>bup-fsck - verify or repair a bup repository</p>
<h1 id="synopsis">SYNOPSIS</h1>
<p>bup fsck [-r] [-g] [-v] [--quick] [-j <em>jobs</em>] [--par2-ok] [--disable-par2] [filenames...]</p>
<h1 id="description">DESCRIPTION</h1>
<p><code>bup fsck</code> is a tool for validating bup repositories in the same way that <code>git fsck</code> validates git repositories.</p>
<p>It can also generate and/or use "recovery blocks" using the <code>par2</code>(1) tool (if you have it installed). This allows you to recover from damaged blocks covering up to 5% of your <code>.pack</code> files.</p>
<p>In a normal backup system, damaged blocks are less important, because there tends to be enough data duplicated between backup sets that a single damaged backup set is non-critical. In a deduplicating backup system like bup, however, no block is ever stored more than once, even if it is used in every single backup. If that block were to be unrecoverable, <em>all</em> your backup sets would be damaged at once. Thus, it's important to be able to verify the integrity of your backups and recover from disk errors if they occur.</p>
<p><em>WARNING</em>: bup fsck's recovery features are not available unless you have the free <code>par2</code>(1) package installed on your bup server.</p>
<p><em>WARNING</em>: bup fsck obviously cannot recover from a complete disk failure. If your backups are important, you need to carefully consider redundancy (such as using RAID for multi-disk redundancy, or making off-site backups for site redundancy).</p>
<h1 id="options">OPTIONS</h1>
<dl>
<dt>-r, --repair</dt>
<dd>attempt to repair any damaged packs using existing recovery blocks. (Requires <code>par2</code>(1).)
</dd>
<dt>-g, --generate</dt>
<dd>generate recovery blocks for any packs that don't already have them. (Requires <code>par2</code>(1).)
</dd>
<dt>-v, --verbose</dt>
<dd>increase verbosity (can be used more than once).
</dd>
<dt>--quick</dt>
<dd>don't run a full <code>git verify-pack</code> on each pack file; instead just check the final checksum. This can cause a significant speedup with no obvious decrease in reliability. However, you may want to avoid this option if you're paranoid. Has no effect on packs that already have recovery information.
</dd>
<dt>-j, --jobs=<em>numjobs</em></dt>
<dd>maximum number of pack verifications to run at a time. The optimal value for this option depends how fast your CPU can verify packs vs. your disk throughput. If you run too many jobs at once, your disk will get saturated by seeking back and forth between files and performance will actually decrease, even if <em>numjobs</em> is less than the number of CPU cores on your system. You can experiment with this option to find the optimal value.
</dd>
<dt>--par2-ok</dt>
<dd>immediately return 0 if <code>par2</code>(1) is installed and working, or 1 otherwise. Do not actually check anything.
</dd>
<dt>--disable-par2</dt>
<dd>pretend that <code>par2</code>(1) is not installed, and ignore all recovery blocks.
</dd>
</dl>
<h1 id="examples">EXAMPLES</h1>
<pre><code># generate recovery blocks for all packs that don't
# have them
bup fsck -g
# generate recovery blocks for a particular pack
bup fsck -g ~/.bup/objects/pack/153a1420cb1c8*.pack
# check all packs for correctness (can be very slow!)
bup fsck
# check all packs for correctness and recover any
# damaged ones
bup fsck -r
# check a particular pack for correctness and recover
# it if damaged
bup fsck -r ~/.bup/objects/pack/153a1420cb1c8*.pack
# check if recovery blocks are available on this system
if bup fsck --par2-ok; then
echo "par2 is ok"
fi</code></pre>
<h1 id="see-also">SEE ALSO</h1>
<p><code>bup-damage</code>(1), <code>fsck</code>(1), <code>git-fsck</code>(1)</p>
<h1 id="bup">BUP</h1>
<p>Part of the <code>bup</code>(1) suite.</p>
</body>
</html>
|