<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: tar code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Sun, 27 Jul 2008 00:57:37 GMT</pubDate>
    <description>DZone Snippets: tar code</description>
    <item>
      <title>unix, pack folder and contents with tar gz</title>
      <link>http://snippets.dzone.com/posts/show/3075</link>
      <description>&lt;code&gt;&lt;br /&gt;tar -zcvf packagename.tar.gz folder/&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Mon, 04 Dec 2006 16:28:02 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/3075</guid>
      <author>assbach (assbach)</author>
    </item>
    <item>
      <title>Avoiding tar's (or any other commandline's) argument list too long error</title>
      <link>http://snippets.dzone.com/posts/show/2803</link>
      <description>When you try to tar a large number of files (cp, mv, or anything else) you may hit the limit of ARG_MAX. You can overcome this by generating a list of files then feeding it to tar as follows:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;# generate the file list&lt;br /&gt;find -iname '*.ext' &gt; fileList.txt&lt;br /&gt;&lt;br /&gt;#run tar passing it the file list&lt;br /&gt;tar czvf archive.tar.gz --files-from fileList.txt&lt;br /&gt;&lt;br /&gt;# a shorthand of this would be:&lt;br /&gt;find . -name '*.ext' -print | tar -cvzf archive.tar.gz --files-from -&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Tue, 10 Oct 2006 16:17:34 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/2803</guid>
      <author>AhmedT (Ahmed Talaat)</author>
    </item>
    <item>
      <title>UNIX tar Commands</title>
      <link>http://snippets.dzone.com/posts/show/1976</link>
      <description>// how the heck do you do the stuff you do with zip but with tar&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;create tar file&lt;br /&gt;tar cvf filename.tar monkey.txt monkey2.txt&lt;br /&gt;&lt;br /&gt;add a file&lt;br /&gt;tar uvf filename.tar monkey.txt&lt;br /&gt;&lt;br /&gt;extract tar file&lt;br /&gt;tar xvf filename.tar&lt;br /&gt;&lt;br /&gt;list contents&lt;br /&gt;tar tf monkey.tar&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Wed, 03 May 2006 20:37:24 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/1976</guid>
      <author>offspinner ()</author>
    </item>
    <item>
      <title>ssh remote backups</title>
      <link>http://snippets.dzone.com/posts/show/1337</link>
      <description>// http://www.linux.com/article.pl?sid=06/01/12/1937210&lt;br /&gt;//  Backup with remote compression and storage&lt;br /&gt;&lt;br /&gt;// When compression is necessary (and feasible), workload&lt;br /&gt;// distribution becomes more effective with OpenSSH. Just as // distcc allows multiple machines to compile&lt;br /&gt;// simultaneously, OpenSSH lets one system create the&lt;br /&gt;// archive, while another system compresses it:&lt;br /&gt;&lt;br /&gt;// tar cf - dirname | ssh remotehost "gzip -c &gt;&lt;br /&gt;// ${TMPFILE}.tar.gz" &lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;tar cf - local-dir-eliotwalker | ssh -l mctt remote-glos.corruptive.co.uk "gzip -c &gt; corr.tar.gz"&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Wed, 01 Feb 2006 22:57:00 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/1337</guid>
      <author>mctt (mctt)</author>
    </item>
  </channel>
</rss>
