<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Tar and GZIP Folder Contents</title>
	<atom:link href="http://technify.me/code-snippets/gzip-tarball-folder/feed/" rel="self" type="application/rss+xml" />
	<link>http://technify.me/code-snippets/gzip-tarball-folder/</link>
	<description></description>
	<lastBuildDate>Thu, 09 May 2013 02:43:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Scott Lewis</title>
		<link>http://technify.me/code-snippets/gzip-tarball-folder/#comment-877</link>
		<dc:creator>Scott Lewis</dc:creator>
		<pubDate>Wed, 07 Dec 2011 18:56:00 +0000</pubDate>
		<guid isPermaLink="false">http://technify.me/?post_type=code_snippet&#038;p=409#comment-877</guid>
		<description><![CDATA[Nice. That&#039;s a much more efficient approach.]]></description>
		<content:encoded><![CDATA[<p>Nice. That&#8217;s a much more efficient approach.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: George Flanagin</title>
		<link>http://technify.me/code-snippets/gzip-tarball-folder/#comment-876</link>
		<dc:creator>George Flanagin</dc:creator>
		<pubDate>Wed, 07 Dec 2011 18:52:00 +0000</pubDate>
		<guid isPermaLink="false">http://technify.me/?post_type=code_snippet&#038;p=409#comment-876</guid>
		<description><![CDATA[Or you could do this:

tar -zcf ~/`basename `pwd``.`date +%F`.tar.gz ./*

Those are backquotes, which are bash&#039;s way of giving you the result of some other shell command. It works like this:

`pwd` =&gt; the present working directory.
`basename .... ` =&gt; strips off the leading dirs, leaving you with only the final part of the dir name.
`date +%F` =&gt; prints the date with dashes, as yyyy-mm-dd
-zcf =&gt; creates the file as a prezipped tarball
./* =&gt; everything in this directory.]]></description>
		<content:encoded><![CDATA[<p>Or you could do this:</p>
<p>tar -zcf ~/`basename `pwd&#8220;.`date +%F`.tar.gz ./*</p>
<p>Those are backquotes, which are bash&#8217;s way of giving you the result of some other shell command. It works like this:</p>
<p>`pwd` =&gt; the present working directory.<br />
`basename &#8230;. ` =&gt; strips off the leading dirs, leaving you with only the final part of the dir name.<br />
`date +%F` =&gt; prints the date with dashes, as yyyy-mm-dd<br />
-zcf =&gt; creates the file as a prezipped tarball<br />
./* =&gt; everything in this directory.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
