<?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: Copy files and directories recursively with tar</title>
	<atom:link href="http://www.tech-recipes.com/rx/115/copy-files-and-directories-recursively-with-tar/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tech-recipes.com/rx/115/copy-files-and-directories-recursively-with-tar/</link>
	<description>Computer and technology tutorials and guides</description>
	<lastBuildDate>Thu, 09 Feb 2012 21:01:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Janis</title>
		<link>http://www.tech-recipes.com/rx/115/copy-files-and-directories-recursively-with-tar/comment-page-1/#comment-33171</link>
		<dc:creator>Janis</dc:creator>
		<pubDate>Wed, 22 Jun 2011 09:16:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-33171</guid>
		<description>Beware, don&#039;t use this approach in a script!
It could fail and if you just check return codes
you won&#039;t even notice.

tar cf - * &#124; ( cd /target; tar xfp -)

What if cd /target; fails? (maybe because it does not exist)
Tar will try to copy the files on themselves. That fails but
nevertheless I get a return code of 0 in my test.

Better use this (and you will get return code 1):
tar cf - * &#124; ( cd /target &amp;&amp; tar xfp -)
Or use the -C option as an alternative.
</description>
		<content:encoded><![CDATA[<p>Beware, don&#8217;t use this approach in a script!<br />
It could fail and if you just check return codes<br />
you won&#8217;t even notice.</p>
<p>tar cf &#8211; * | ( cd /target; tar xfp -)</p>
<p>What if cd /target; fails? (maybe because it does not exist)<br />
Tar will try to copy the files on themselves. That fails but<br />
nevertheless I get a return code of 0 in my test.</p>
<p>Better use this (and you will get return code 1):<br />
tar cf &#8211; * | ( cd /target &amp;&amp; tar xfp -)<br />
Or use the -C option as an alternative.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karen</title>
		<link>http://www.tech-recipes.com/rx/115/copy-files-and-directories-recursively-with-tar/comment-page-1/#comment-46828</link>
		<dc:creator>Karen</dc:creator>
		<pubDate>Wed, 02 Mar 2011 10:03:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-46828</guid>
		<description>Except -C is not a very standard option on tar. The &#039;tar&#039; command in Solaris does not accept this, and I doubt it would be accepted on AIX or HP-UX either. </description>
		<content:encoded><![CDATA[<p>Except -C is not a very standard option on tar. The &#8216;tar&#8217; command in Solaris does not accept this, and I doubt it would be accepted on AIX or HP-UX either.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Soumen78</title>
		<link>http://www.tech-recipes.com/rx/115/copy-files-and-directories-recursively-with-tar/comment-page-1/#comment-44728</link>
		<dc:creator>Soumen78</dc:creator>
		<pubDate>Mon, 13 Dec 2010 10:53:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-44728</guid>
		<description>I have some link in my src area and these links _could_ be broken under certain circumstances and I want to ignore such error and proceed. How do I pass “--ignore-failed-read”  in &quot;tar cfhi - . &#124; ( tar -C ~/releases/tmp_new  xpf - )&quot;?</description>
		<content:encoded><![CDATA[<p>I have some link in my src area and these links _could_ be broken under certain circumstances and I want to ignore such error and proceed. How do I pass “&#8211;ignore-failed-read”  in &#8220;tar cfhi &#8211; . | ( tar -C ~/releases/tmp_new  xpf &#8211; )&#8221;?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mikel Stous</title>
		<link>http://www.tech-recipes.com/rx/115/copy-files-and-directories-recursively-with-tar/comment-page-1/#comment-29201</link>
		<dc:creator>Mikel Stous</dc:creator>
		<pubDate>Tue, 07 Apr 2009 21:17:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-29201</guid>
		<description>I&#039;ve usually seen it with B for reassembling short reads into full records (reading 4.2BSD pipes).  In other words, rightsize the blocks for the filesystem.

tar cf - * &#124; ( cd /target; tar xfBp -)</description>
		<content:encoded><![CDATA[<p>I&#8217;ve usually seen it with B for reassembling short reads into full records (reading 4.2BSD pipes).  In other words, rightsize the blocks for the filesystem.</p>
<p>tar cf &#8211; * | ( cd /target; tar xfBp -)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: x</title>
		<link>http://www.tech-recipes.com/rx/115/copy-files-and-directories-recursively-with-tar/comment-page-1/#comment-25464</link>
		<dc:creator>x</dc:creator>
		<pubDate>Thu, 27 Nov 2008 22:37:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-25464</guid>
		<description>Better is
tar cf - . &#124; tar -C /target -xpf -</description>
		<content:encoded><![CDATA[<p>Better is<br />
tar cf &#8211; . | tar -C /target -xpf -</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached (User agent is rejected)
Database Caching 5/12 queries in 0.556 seconds using memcached
Object Caching 329/333 objects using memcached

Served from: www.tech-recipes.com @ 2012-02-10 05:44:54 -->
