/usr/share/doc/bup/bup-split.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 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 | <!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-split(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-split(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-split - save individual files to bup backup sets</p>
<h1 id="synopsis">SYNOPSIS</h1>
<p>bup split [-t] [-c] [-n <em>name</em>] COMMON_OPTIONS</p>
<p>bup split -b COMMON_OPTIONS</p>
<p>bup split <--noop [--copy]|--copy> COMMON_OPTIONS</p>
<dl>
<dt>COMMON_OPTIONS</dt>
<dd>[-r <em>host</em>:<em>path</em>] [-v] [-q] [-d <em>seconds-since-epoch</em>] [--bench] [--max-pack-size=<em>bytes</em>] [-#] [--bwlimit=<em>bytes</em>] [--max-pack-objects=<em>n</em>] [--fanout=<em>count</em>] [--keep-boundaries] [--git-ids | filenames...]
</dd>
</dl>
<h1 id="description">DESCRIPTION</h1>
<p><code>bup split</code> concatenates the contents of the given files (or if no filenames are given, reads from stdin), splits the content into chunks of around 8k using a rolling checksum algorithm, and saves the chunks into a bup repository. Chunks which have previously been stored are not stored again (ie. they are 'deduplicated').</p>
<p>Because of the way the rolling checksum works, chunks tend to be very stable across changes to a given file, including adding, deleting, and changing bytes.</p>
<p>For example, if you use <code>bup split</code> to back up an XML dump of a database, and the XML file changes slightly from one run to the next, nearly all the data will still be deduplicated and the size of each backup after the first will typically be quite small.</p>
<p>Another technique is to pipe the output of the <code>tar</code>(1) or <code>cpio</code>(1) programs to <code>bup split</code>. When individual files in the tarball change slightly or are added or removed, bup still processes the remainder of the tarball efficiently. (Note that <code>bup save</code> is usually a more efficient way to accomplish this, however.)</p>
<p>To get the data back, use <code>bup-join</code>(1).</p>
<h1 id="modes">MODES</h1>
<p>These options select the primary behavior of the command, with -n being the most likely choice.</p>
<dl>
<dt>-n, --name=<em>name</em></dt>
<dd>after creating the dataset, create a git branch named <em>name</em> so that it can be accessed using that name. If <em>name</em> already exists, the new dataset will be considered a descendant of the old <em>name</em>. (Thus, you can continually create new datasets with the same name, and later view the history of that dataset to see how it has changed over time.) The original data will also be available as a top-level file named "data" in the VFS, accessible via <code>bup fuse</code>, <code>bup ftp</code>, etc.
</dd>
<dt>-t, --tree</dt>
<dd>output the git tree id of the resulting dataset.
</dd>
<dt>-c, --commit</dt>
<dd>output the git commit id of the resulting dataset.
</dd>
<dt>-b, --blobs</dt>
<dd>output a series of git blob ids that correspond to the chunks in the dataset. Incompatible with -n, -t, and -c.
</dd>
<dt>--noop</dt>
<dd>read the data and split it into blocks based on the "bupsplit" rolling checksum algorithm, but don't do anything with the blocks. This is mostly useful for benchmarking. Incompatible with -n, -t, -c, and -b.
</dd>
<dt>--copy</dt>
<dd>like <code>--noop</code>, but also write the data to stdout. This can be useful for benchmarking the speed of read+bupsplit+write for large amounts of data. Incompatible with -n, -t, -c, and -b.
</dd>
</dl>
<h1 id="options">OPTIONS</h1>
<dl>
<dt>-r, --remote=<em>host</em>:<em>path</em></dt>
<dd>save the backup set to the given remote server. If <em>path</em> is omitted, uses the default path on the remote server (you still need to include the ':'). The connection to the remote server is made with SSH. If you'd like to specify which port, user or private key to use for the SSH connection, we recommend you use the <code>~/.ssh/config</code> file. Even though the destination is remote, a local bup repository is still required.
</dd>
<dt>-d, --date=<em>seconds-since-epoch</em></dt>
<dd>specify the date inscribed in the commit (seconds since 1970-01-01).
</dd>
<dt>-q, --quiet</dt>
<dd>disable progress messages.
</dd>
<dt>-v, --verbose</dt>
<dd>increase verbosity (can be used more than once).
</dd>
<dt>--git-ids</dt>
<dd>stdin is a list of git object ids instead of raw data. <code>bup split</code> will read the contents of each named git object (if it exists in the bup repository) and split it. This might be useful for converting a git repository with large binary files to use bup-style hashsplitting instead. This option is probably most useful when combined with <code>--keep-boundaries</code>.
</dd>
<dt>--keep-boundaries</dt>
<dd>if multiple filenames are given on the command line, they are normally concatenated together as if the content all came from a single file. That is, the set of blobs/trees produced is identical to what it would have been if there had been a single input file. However, if you use <code>--keep-boundaries</code>, each file is split separately. You still only get a single tree or commit or series of blobs, but each blob comes from only one of the files; the end of one of the input files always ends a blob.
</dd>
<dt>--bench</dt>
<dd>print benchmark timings to stderr.
</dd>
<dt>--max-pack-size=<em>bytes</em></dt>
<dd>never create git packfiles larger than the given number of bytes. Default is 1 billion bytes. Usually there is no reason to change this.
</dd>
<dt>--max-pack-objects=<em>numobjs</em></dt>
<dd>never create git packfiles with more than the given number of objects. Default is 200 thousand objects. Usually there is no reason to change this.
</dd>
<dt>--fanout=<em>numobjs</em></dt>
<dd>when splitting very large files, try and keep the number of elements in trees to an average of <em>numobjs</em>.
</dd>
<dt>--bwlimit=<em>bytes/sec</em></dt>
<dd>don't transmit more than <em>bytes/sec</em> bytes per second to the server. This is good for making your backups not suck up all your network bandwidth. Use a suffix like k, M, or G to specify multiples of 1024, 1024<em>1024, 1024</em>1024*1024 respectively.
</dd>
<dt>-<em>#</em>, --compress=<em>#</em></dt>
<dd>set the compression level to # (a value from 0-9, where 9 is the highest and 0 is no compression). The default is 1 (fast, loose compression)
</dd>
</dl>
<h1 id="examples">EXAMPLES</h1>
<pre><code>$ tar -cf - /etc | bup split -r myserver: -n mybackup-tar
tar: Removing leading /' from member names
Indexing objects: 100% (196/196), done.
$ bup join -r myserver: mybackup-tar | tar -tf - | wc -l
1961</code></pre>
<h1 id="see-also">SEE ALSO</h1>
<p><code>bup-join</code>(1), <code>bup-index</code>(1), <code>bup-save</code>(1), <code>bup-on</code>(1), <code>ssh_config</code>(5)</p>
<h1 id="bup">BUP</h1>
<p>Part of the <code>bup</code>(1) suite.</p>
</body>
</html>
|