<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel>
	  <title>Ask MetaFilter questions tagged with tar</title>
      <link>http://ask.metafilter.com/tags/tar</link>
      <description>Questions tagged with 'tar' at Ask MetaFilter.</description>
	  <pubDate>Sat, 26 Sep 2009 17:54:13 -0800</pubDate> <lastBuildDate>Sat, 26 Sep 2009 17:54:13 -0800</lastBuildDate>

      <language>en-us</language>
	  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
	  <ttl>60</ttl>	  
	<item>
	<title>Why did tar and nc not play nice?</title>
	<link>http://ask.metafilter.com/133905/Why%2Ddid%2Dtar%2Dand%2Dnc%2Dnot%2Dplay%2Dnice</link>	
	<description>Can anybody immediately see why nc and tar didn&apos;t work together the way I expected they would? I wanted to copy an Ubuntu installation from a laptop with one filesystem to a desktop box with two. So I booted an Ubuntu live CD on each and opened terminals; then on the laptop did&lt;br&gt;
&lt;code&gt;&lt;br&gt;
sudo su -&lt;br&gt;
mount /dev/sda2 /mnt&lt;br&gt;
cd /mnt&lt;br&gt;
tar c . | nc -l -p 10000&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
and on the desktop box did&lt;br&gt;
&lt;code&gt;&lt;br&gt;
sudo su -&lt;br&gt;
mkfs -t ext3 -L root /dev/sda3&lt;br&gt;
mkfs -t ext3 -L home /dev/sda4&lt;br&gt;
mount /dev/sda3 /mnt&lt;br&gt;
mkdir /mnt/home&lt;br&gt;
mount /dev/sda4 /mnt/home&lt;br&gt;
cd /mnt&lt;br&gt;
nc 192.168.1.3 10000 -q5 | tar xv --numeric-owner&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
As expected, a huge list of filenames scrolled by on the desktop box as tar extracted the files. When that all stopped, I hit ctrl-D on the desktop end to close nc&apos;s standard input; five seconds later the shell prompt returned on the laptop as well. So everything seemed to be working as expected.&lt;br&gt;
&lt;br&gt;
After making the necessary corrections to /mnt/boot/grub/menu.lst, /mnt/etc/fstab, /mnt/etc/hosts and /mnt/etc/hostname on the desktop box, I umounted everything and rebooted it, but assorted things were badly amiss. Turns out that a random assortment of vital files had been created with zero length and zero permissions instead of being properly copied.&lt;br&gt;
&lt;br&gt;
I have since got the machine-to-machine copy done by mounting the laptop&apos;s hard drive in a USB enclosure, plugging it into the desktop box and using &lt;code&gt;cp -av&lt;/code&gt; so I&apos;m not looking for ways to get the primary job done any more.&lt;br&gt;
&lt;br&gt;
What I would like to know: before I spend more time trying to work out why the tar | nc &amp;lt;--&amp;gt; nc | tar method failed, can anybody see some documented reason why it was doomed to do so?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.133905</guid>
	<pubDate>Sat, 26 Sep 2009 17:54:13 -0800</pubDate>
	<category>length</category>
	<category>linux</category>
	<category>nc</category>
	<category>permissions</category>
	<category>tar</category>
	<category>zero</category>
	<dc:creator>flabdablet</dc:creator>
	</item>
	<item>
	<title>Efficiently retrieving a file from an archive</title>
	<link>http://ask.metafilter.com/131322/Efficiently%2Dretrieving%2Da%2Dfile%2Dfrom%2Dan%2Darchive</link>	
	<description>Is there a smarter &lt;code&gt;tar&lt;/code&gt; or &lt;code&gt;cpio&lt;/code&gt; out there, or a smarter way to archive, to efficiently retrieve a file stored in the archive? I am using &lt;code&gt;tar&lt;/code&gt; to archive a group of very large (multi-GB) &lt;code&gt;bz2&lt;/code&gt; files.&lt;br&gt;
&lt;br&gt;
If I use &lt;code&gt;tar -tf file.tar&lt;/code&gt; to list the files within the archive, this takes a very long time to complete (~10-15 minutes).&lt;br&gt;
&lt;br&gt;
Likewise, &lt;code&gt;cpio -t &amp;lt; file.cpio&lt;/code&gt; takes just as long to complete, plus or minus a few seconds.&lt;br&gt;
&lt;br&gt;
Accordingly, retrieving a file from an archive (via &lt;code&gt;tar -xf file.tar myFileOfInterest&lt;/code&gt; for example) is as slow.&lt;br&gt;
&lt;br&gt;
Is there an archival method out there that keeps a readily available &quot;catalog&quot; with the archive, so that an individual file within the archive can be retrieved quickly? &lt;br&gt;
&lt;br&gt;
For example, some kind of catalog that stores a pointer to a particular byte in the archive, as well as the size of the file to be retrieved (as well as any other filesystem-specific particulars).&lt;br&gt;
&lt;br&gt;
Is there a tool (or argument to &lt;code&gt;tar&lt;/code&gt; or &lt;code&gt;cpio&lt;/code&gt;) that allows efficient retrieval of a file within the archive?&lt;/code&gt;&lt;/&gt;</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.131322</guid>
	<pubDate>Thu, 27 Aug 2009 16:25:43 -0800</pubDate>
	<category>archive</category>
	<category>cpio</category>
	<category>efficiency</category>
	<category>tar</category>
	<dc:creator>Blazecock Pileon</dc:creator>
	</item>
	<item>
	<title>reveal the mystic truth!</title>
	<link>http://ask.metafilter.com/118307/reveal%2Dthe%2Dmystic%2Dtruth</link>	
	<description>What is the explanation for spirals of crack-sealing tar I see on the roads periodically? Examples &lt;a href=&quot;http://www.flickr.com/photos/spor/3403589076/&quot;&gt;here&lt;/a&gt; and &lt;a href=&quot;http://www.flickr.com/photos/spor/3403588302/in/photostream/&quot;&gt;here.&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
I photographed these in Golden Gate Park, San Francisco.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.118307</guid>
	<pubDate>Tue, 31 Mar 2009 22:33:55 -0800</pubDate>
	<category>mystic</category>
	<category>roads</category>
	<category>spiral</category>
	<category>tar</category>
	<category>truths</category>
	<dc:creator>garethspor</dc:creator>
	</item>
	<item>
	<title>OSX: Future as a programmer dashed by failure to interpret Terminal error</title>
	<link>http://ask.metafilter.com/99726/OSX%2DFuture%2Das%2Da%2Dprogrammer%2Ddashed%2Dby%2Dfailure%2Dto%2Dinterpret%2DTerminal%2Derror</link>	
	<description>Multiple sources credit this &lt;a href=&quot;http://hivelogic.com/articles/2007/11/installing-mysql-on-mac-os-x&quot;&gt;Hivelogic post as the definitive guide to getting MySQL up and running on a Mac OS X&lt;/a&gt;.  But I can&apos;t get past the first few steps.  I am not a programmer.  But I wish I was; they earn more than me and have the best office in the building.  I know HTML and CSS and  basic  PHP.  I have been trying out a bunch of Ruby, Python, Django, and PHP tutorials lately but they&apos;re all kind of useless because they&apos;re not directly applicable to a hosted, &quot;live site&quot; environment that I&apos;m used to ... So, I&apos;m trying to install MySQL on my &lt;strong&gt;Intel Macs running 10.5.4 (powerbook and imac)&lt;/strong&gt; to have a local testing environment but BANG I&apos;m an idiot and I cannot get through this apparently simple tutorial.  Of course, the comments are closed and my Googling yields no answer.  I was about to give up when I remembered my good friends over here.  &lt;br&gt;
&lt;br&gt;
Here&apos;s what happens, I try to download and build MySQL as instructed:&lt;br&gt;
&lt;br&gt;
curl -O http://mysql.he.net/Downloads/MySQL-5.0/mysql-5.0.45.tar.gz&lt;br&gt;
tar xzvf mysql-5.0.45.tar.gz&lt;br&gt;
&lt;br&gt;
But I get the following error:&lt;br&gt;
&lt;br&gt;
gzip: stdin: not in gzip format&lt;br&gt;
tar: Child returned status 1&lt;br&gt;
tar: Error exit delayed from previous errors&lt;br&gt;
&lt;br&gt;
I&apos;ve tried downloading newer versions of MySQL but I just don&apos;t know what I&apos;m doing.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.99726</guid>
	<pubDate>Wed, 20 Aug 2008 18:49:53 -0800</pubDate>
	<category>curl</category>
	<category>leopard</category>
	<category>mac</category>
	<category>mysql</category>
	<category>osx</category>
	<category>programming</category>
	<category>tar</category>
	<category>terminal</category>
	<category>unix</category>
	<dc:creator>metajc</dc:creator>
	</item>
	<item>
	<title>working with tar archives...</title>
	<link>http://ask.metafilter.com/99152/working%2Dwith%2Dtar%2Darchives</link>	
	<description>How can get the sum of the files sizes of all php and css files within specific folders of a tar archive? Ultimately, I want to create a graph showing how code grew over the duration of a project. To do that, I would like to build a script that sums the sizes specific files of specific types within specific directories of the archive file.&lt;br&gt;
&lt;br&gt;
I have a folder containing a couple hundred backup files of a web development server. The backup files were archived using the &quot;tar czf&quot; command line.&lt;br&gt;
&lt;br&gt;
In each archive file, I want to search within the following directories for php and css files:&lt;br&gt;
var/www/dev/&lt;br&gt;
var/www/dev/includes&lt;br&gt;
var/www/dev/css&lt;br&gt;
Subdirectories of these directories should not be searched.&lt;br&gt;
&lt;br&gt;
Can you guys get me on my way?&lt;br&gt;
&lt;br&gt;
So far I&apos;m stuck trying to list files I need in the tar file. I have:&lt;br&gt;
tar -ztvf archive_name.tgz var/www/dev/ &lt;br&gt;
which is listing all subdirectories and all file types.&lt;br&gt;
&lt;br&gt;
The OS is Ubuntu 8.04 Server Edition &lt;br&gt;
&lt;br&gt;
Thanks in advance!</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.99152</guid>
	<pubDate>Wed, 13 Aug 2008 22:10:43 -0800</pubDate>
	<category>backup</category>
	<category>linux</category>
	<category>script</category>
	<category>tar</category>
	<dc:creator>timebomb</dc:creator>
	</item>
	<item>
	<title>How to exorcise cigarette smells and tar from an iMac?</title>
	<link>http://ask.metafilter.com/89990/How%2Dto%2Dexorcise%2Dcigarette%2Dsmells%2Dand%2Dtar%2Dfrom%2Dan%2DiMac</link>	
	<description>How can I clean away cigarette odor and tar buildup from a G3 iMac? I loaned an old iMac to a friend who needed a computer after his house was burgled. The &#8220;week or two&#8221; loan turned into many months, and I finally got the computer back last night. &lt;br&gt;
&lt;br&gt;
When I saw the condition of my previously minty Mac, I was very sad. The keyboard, mouse, and computer are all showing signs of living with chain smokers. There is some tar discoloration in the clear plastic bits, and there is also a very distinct smell. It&apos;s strong enough that I can&apos;t bring the computer into my house.&lt;br&gt;
&lt;br&gt;
I&apos;m planning on taking apart the components and cleaning them up, but wanted to know if anyone had any additional tips or suggestions before I get started. Any idea on cleaning agents that I can use that won&apos;t craze the plastic?&lt;br&gt;
&lt;br&gt;
Thanks in advance.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.89990</guid>
	<pubDate>Mon, 28 Apr 2008 10:32:26 -0800</pubDate>
	<category>cigarette</category>
	<category>cleaning</category>
	<category>computer</category>
	<category>mac</category>
	<category>smoke</category>
	<category>tar</category>
	<dc:creator>mattybonez</dc:creator>
	</item>
	<item>
	<title>How do I open a &quot;.tar.tgz&quot; file?</title>
	<link>http://ask.metafilter.com/87331/How%2Ddo%2DI%2Dopen%2Da%2Dtartgz%2Dfile</link>	
	<description>How do I open a &quot;.tar.tgz&quot; file? That&apos;s all one long extension. I have a friend who&apos;s hosting package expired on www.canaca.com. So I immediately logged-in to backup his information. The problem is the backup function gives me a huge file with a .tar.tgz extension. Now I would like to take the contents of that file and upload to my own hosting service. I tried uncompressing with WinZip, WinRar, WinAce, ZipGenius, StuffIt, Gzip, GUnzip, and more! None of these programs recognize the file as a valid archive. I uploaded the file to my hosting service, and attempted to extract it from there. Same result. I also redownloaded the backup, thinking the original file may have been corrupted, but I got the exact same file down to the byte.&lt;br&gt;
&lt;br&gt;
They seem to have disconnected the ftp access, so I can no longer access the files that way. The backup function is my only option.&lt;br&gt;
&lt;br&gt;
So am I stuck with a proprietary file which can only be uncompressed on www.canaca.com or is there another way to crack this nut?&lt;br&gt;
&lt;br&gt;
Thanks!</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.87331</guid>
	<pubDate>Sat, 29 Mar 2008 05:31:19 -0800</pubDate>
	<category>archive</category>
	<category>compression</category>
	<category>file</category>
	<category>tar</category>
	<category>tgz</category>
	<dc:creator>exolstice</dc:creator>
	</item>
	<item>
	<title>tar on my car :(</title>
	<link>http://ask.metafilter.com/48906/tar%2Don%2Dmy%2Dcar</link>	
	<description>I drove through a work area today and my car is covered in tar. What can I do? On my way home from work I passed through a work area on a rural state road where they were filling cracks on the road with a tar/asphalt substance. It was the typical situation where they have two guys with stop/slow signs at each end of the temporarily one-lane road. They directed me through, and a few minutes later I noticed that my steering wheel was unusually wobbly. When I got home, I got out and saw that my tires were &lt;a href=&quot;http://raspen.org/fuckpenndot/DSC00001.JPG&quot;&gt;covered in tar/asphalt&lt;/a&gt;. It also &lt;a href=&quot;http://raspen.org/fuckpenndot/DSC00003.JPG&quot;&gt;splashed&lt;/a&gt; around the wheel wells. This stuff is incredibly sticky, and it seems to be hardening. I can&apos;t get it off myself. Will I need new tires, or is it possible that a tire shop will be able to clean this off? What about the body, should I even try to get it off myself?&lt;br&gt;
&lt;br&gt;
Also, would it be worth trying to get the state DOT to foot the bill? Ugh.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2006:site.48906</guid>
	<pubDate>Wed, 18 Oct 2006 15:40:39 -0800</pubDate>
	<category>asphalt</category>
	<category>car</category>
	<category>cleaning</category>
	<category>tar</category>
	<dc:creator>(lambda (x) x)</dc:creator>
	</item>
	<item>
	<title>Quicker WordPress upgrades?</title>
	<link>http://ask.metafilter.com/34364/Quicker%2DWordPress%2Dupgrades</link>	
	<description>I&apos;m trying to keep up with WordPress upgrades (2.0.2 just came out yesterday, and I was only halfway through upgrading 30 installs to 2.0.1!), but I swear there must be an easier way than the way I&apos;m doing it. I run multiple installs of WordPress.  I run them in renamed directories (domain.com/bob), rather than keeping the default (domain.com/wordpress).  When a new version comes out, here&apos;s what I do at the command line:&lt;br&gt;
&lt;br&gt;
1. Rename the directory (&apos;bob&apos; to &apos;bob.old&apos;).&lt;br&gt;
&lt;br&gt;
2. Unpack the new version (tar -xvzf wordpress-x-x-x.tar.gz), which automatically puts itself in a directory called &apos;wordpress&apos;.&lt;br&gt;
&lt;br&gt;
3. Rename &apos;wordpress&apos; to &apos;bob&apos;.&lt;br&gt;
&lt;br&gt;
4. Copy the wp-config.php, .htaccess, plugins, and assorted theme files from &apos;bob.old&apos; to &apos;bob.&apos;&lt;br&gt;
&lt;br&gt;
Step four is a pain, and I frequently miss things I should have copied over, so I keep looking at step 2 and thinking there must be an easier way.  The documentation says to just install the new files over the old files (and the installer uses filenames like wp-config-sample.php to make sure it doesn&apos;t overwrite your actual config file), but apart from FTP, how do I do that with the tar command?  In other words, how can I tell tar to unpack the contents of the file into the pre-existing &apos;bob&apos; rather than into a &apos;wordpress&apos; directory?&lt;br&gt;
&lt;br&gt;
I know there are other &lt;a href=&quot;http://ask.metafilter.com/tags/wordpress&quot;&gt;WordPress gurus&lt;/a&gt; here, and I&apos;m hoping I&apos;m just missing something so blatantly obvious it&apos;ll hurt to read the answer.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2006:site.34364</guid>
	<pubDate>Tue, 14 Mar 2006 20:02:21 -0800</pubDate>
	<category>blog</category>
	<category>install</category>
	<category>tar</category>
	<category>unix</category>
	<category>upgrade</category>
	<category>wordpress</category>
	<dc:creator>pzarquon</dc:creator>
	</item>
	<item>
	<title>Family Guy in Japan?</title>
	<link>http://ask.metafilter.com/16045/Family%2DGuy%2Din%2DJapan</link>	
	<description>Is the show &quot;Family Guy&quot; on the air in Japan at all?  Do the Japanese like it?   

Is any American animation popular in Japan? I ask because I am an American and a big fan of Japanese animation...is the fascination cross-cultural?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2005:site.16045</guid>
	<pubDate>Tue, 08 Mar 2005 02:43:51 -0800</pubDate>
	<category>Griffin</category>
	<category>Pea</category>
	<category>Tar</category>
	<dc:creator>furiousxgeorge</dc:creator>
	</item>
	
	</channel>
</rss>

