<?xml version="1.0" encoding="utf-8"?>
<feed version="0.3" xmlns="http://purl.org/atom/ns#">
<link rel="alternate" type="text/html" href="https://emergent.unpythonic.net/"/>

<title>Jeff Epler's blog</title>
<modified>2008-03-24T23:40:27Z</modified>
<tagline>Photos, electronics, cnc, and more</tagline>
<author><name>Jeff Epler</name><email>jepler@unpythonic.net</email></author>
<entry>
<title>turd: Tape Usage of Real Disk</title>
<issued>2008-03-24T23:40:27Z</issued>
<modified>2008-03-24T23:40:27Z</modified>
<id>https://emergent.unpythonic.net/01206402027</id>
<link rel="alternate" type="text/html" href="https://emergent.unpythonic.net/01206402027"/>
<content type="text/html" mode="escaped">
With $100 terabyte hard disks but without inexpensive backup media and
drives, it is often necessary to mark parts of a filesystem 'nodump' to get
useful backups on a reasonable number of pieces of media.

&lt;p&gt;&lt;tt&gt;turd&lt;/tt&gt; is a program I cooked up to help with this:  it is like the
standard &lt;tt&gt;du&lt;/tt&gt; utility, except that it consults the filesystem nodump flag.
This means the output of &lt;tt&gt;turd&lt;/tt&gt; approximates the amount of tape space
required to dump the named directory.  Like &lt;tt&gt;du -x&lt;/tt&gt;, &lt;tt&gt;turd&lt;/tt&gt; never
recurses into a different filesystem.

&lt;p&gt;&lt;tt&gt;tar0&lt;/tt&gt; is a program that takes a list of NUL-terminated filenames and
directory names on stdin and writes a tar file to stdout.  For each filename or
directory the file or directory itself is written; the contents of directories
are not recursively written.  To create a tar of only files changed since the
last level-1 dump, use
&lt;blockquote&gt;&lt;pre&gt;
   cd /mount-point; turd -F -1 | tar0 &amp;gt; level1.tar
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;&lt;tt&gt;turd&lt;/tt&gt; and &lt;tt&gt;tar0&lt;/tt&gt; ar released under the terms of the GNU General
Public License, version 2 or later. 

&lt;p&gt;There is now a git repository for turd: &lt;a href=&quot;http://git.unpy.net/view/turd.git/&quot;&gt;http://git.unpy.net/view/turd.git/&lt;/a&gt;
&lt;p&gt;&lt;b&gt;Files currently attached to this page:&lt;/b&gt;
&lt;table cellpadding=5 style=&quot;width:auto!important; clear:none!important&quot;&gt;&lt;col&gt;&lt;col style=&quot;text-align: right&quot;&gt;&lt;tr bgcolor=#eeeeee&gt;&lt;td&gt;&lt;a href=&quot;https://media.unpythonic.net/emergent-files/01206402027/tar0&quot;&gt;tar0&lt;/a&gt;&lt;/td&gt;&lt;td&gt;457 bytes&lt;/td&gt;&lt;/tr&gt;&lt;tr bgcolor=#dddddd&gt;&lt;td&gt;&lt;a href=&quot;https://media.unpythonic.net/emergent-files/01206402027/turd&quot;&gt;turd&lt;/a&gt;&lt;/td&gt;&lt;td&gt;7.3kB&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;p&gt;

</content>
</entry>
</feed>
