<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SysAdmin Adventures &#187; directories</title>
	<atom:link href="http://blog.tpa.me.uk/tag/directories/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.tpa.me.uk</link>
	<description>Tech notes from a Systems Administrator</description>
	<lastBuildDate>Mon, 31 Oct 2011 11:09:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Tarring up JUST the dotfiles</title>
		<link>http://blog.tpa.me.uk/2009/09/29/tarring-up-just-the-dotfiles/</link>
		<comments>http://blog.tpa.me.uk/2009/09/29/tarring-up-just-the-dotfiles/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 16:26:31 +0000</pubDate>
		<dc:creator>Zordrak</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Slackware]]></category>
		<category><![CDATA[directories]]></category>
		<category><![CDATA[dotfiles]]></category>
		<category><![CDATA[hidden]]></category>
		<category><![CDATA[lzma]]></category>
		<category><![CDATA[tar]]></category>
		<category><![CDATA[xz]]></category>

		<guid isPermaLink="false">http://blog.tpa.me.uk/?p=210</guid>
		<description><![CDATA[Want to tar up only the dotfiles (hidden files/dirs) in your home directory? ls -A &#124; egrep '^\.' &#124; tar -cvJf filename.tar.xz -T - or (thanks to mosk0bit) tar -cvJf filename.tar.xz .??* The astute will notice the &#8220;J&#8221; and the &#8220;xz&#8221;. J tells tar to compress with xz compression (formerly lzma) which is significantly better [...]]]></description>
			<content:encoded><![CDATA[<p>Want to tar up only the dotfiles (hidden files/dirs) in your home directory?</p>
<div class="codecolorer-container bash geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-A</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">egrep</span> <span style="color: #ff0000;">'^\.'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-cvJf</span> filename.tar.xz <span style="color: #660033;">-T</span> -</div></div>
<p>or (thanks to mosk0bit)</p>
<div class="codecolorer-container bash geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-cvJf</span> filename.tar.xz .??<span style="color: #000000; font-weight: bold;">*</span></div></div>
<p>The astute will notice the &#8220;J&#8221; and the &#8220;xz&#8221;. J tells tar to compress with xz compression (formerly lzma) which is significantly better than gzip especially with the type of files you will expect to have in your hidden directories. If J is not available in your version of tar, use z instead.</p>
<p>Neither of these solutions are absolutely perfect, but they are at least simple. For the perfect score, see slava_dp&#8217;s comment:<br />
<a href="http://blog.tpa.me.uk/2009/09/29/tarring-up-just-the-dotfiles/#comment-478">http://blog.tpa.me.uk/2009/09/29/tarring-up-just-the-dotfiles/#comment-478</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tpa.me.uk/2009/09/29/tarring-up-just-the-dotfiles/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

