<?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 entire contents of a directory and preserve permissions</title>
	<atom:link href="http://www.tech-recipes.com/rx/513/copy-entire-contents-of-a-directory-and-preserve-permissions/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tech-recipes.com/rx/513/copy-entire-contents-of-a-directory-and-preserve-permissions/</link>
	<description>Computer and technology tutorials and guides</description>
	<lastBuildDate>Sun, 22 Nov 2009 00:56:44 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: joppe Koning</title>
		<link>http://www.tech-recipes.com/rx/513/copy-entire-contents-of-a-directory-and-preserve-permissions/comment-page-1/#comment-1001</link>
		<dc:creator>joppe Koning</dc:creator>
		<pubDate>Mon, 08 Nov 2004 06:54:08 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-1001</guid>
		<description>cp uses a caracter for caracter copy method. copying with tar is faster because is uses greater buffers</description>
		<content:encoded><![CDATA[<p>cp uses a caracter for caracter copy method. copying with tar is faster because is uses greater buffers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.tech-recipes.com/rx/513/copy-entire-contents-of-a-directory-and-preserve-permissions/comment-page-1/#comment-768</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Fri, 01 Oct 2004 08:18:50 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-768</guid>
		<description>&lt;ul id=&quot;quote&quot;&gt;&lt;h6&gt;flarg wrote:&lt;/h6&gt;In addition, I think you meant &#039;cp -a&#039;, which is equivilant to &#039;cp -dpR&#039;. The -d flag will dereference symbolic links.

&#039;cp -Rp dir1 dir2&#039; doesn&#039;t preserve symlinks. It will instead copy the contents of the target:


If dir1 looks like this:

&lt;code&gt;
-rw-r--r--   1 flarg    group           0 Aug 17 14&#58;59 file1
lrwxrwxrwx   1 flarg group           4 Aug 17 14&#58;59 link1 -&gt; /tmp
&lt;/code&gt;


If you use &#039;cp -Rp&#039;, then &#039;link1&#039; will become a directory:

&lt;code&gt;
cp -Rp dir1 dir2
-rw-r--r--   1 flarg    group           0 Aug 17 14&#58;59 file1
drwxrwxrwx   7 flarg    groupl      1701 Aug 17 14&#58;59 link1
&lt;/code&gt;


You really want the &#039;-d&#039; flag to dereference any symbolic links.&lt;/ul&gt;</description>
		<content:encoded><![CDATA[<ul id="quote">
<h6>flarg wrote:</h6>
<p>In addition, I think you meant &#8216;cp -a&#8217;, which is equivilant to &#8216;cp -dpR&#8217;. The -d flag will dereference symbolic links.</p>
<p>&#8216;cp -Rp dir1 dir2&#8242; doesn&#8217;t preserve symlinks. It will instead copy the contents of the target:</p>
<p>If dir1 looks like this:</p>
<p><code><br />
-rw-r--r--   1 flarg    group           0 Aug 17 14&#58;59 file1<br />
lrwxrwxrwx   1 flarg group           4 Aug 17 14&#58;59 link1 -&gt; /tmp<br />
</code></p>
<p>If you use &#8216;cp -Rp&#8217;, then &#8216;link1&#8242; will become a directory:</p>
<p><code><br />
cp -Rp dir1 dir2<br />
-rw-r--r--   1 flarg    group           0 Aug 17 14&#58;59 file1<br />
drwxrwxrwx   7 flarg    groupl      1701 Aug 17 14&#58;59 link1<br />
</code></p>
<p>You really want the &#8216;-d&#8217; flag to dereference any symbolic links.</ul>
]]></content:encoded>
	</item>
	<item>
		<title>By: </title>
		<link>http://www.tech-recipes.com/rx/513/copy-entire-contents-of-a-directory-and-preserve-permissions/comment-page-1/#comment-399</link>
		<dc:creator></dc:creator>
		<pubDate>Tue, 17 Aug 2004 15:13:10 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-399</guid>
		<description>In addition, I think you meant &#039;cp -a&#039;, which is equivilant to &#039;cp -dpR&#039;. The -d flag will dereference symbolic links.

&#039;cp -Rp dir1 dir2&#039; doesn&#039;t preserve symlinks. It will instead copy the contents of the target:


If dir1 looks like this:

&lt;code&gt;
-rw-r--r--   1 flarg    group           0 Aug 17 14&#58;59 file1
lrwxrwxrwx   1 flarg group           4 Aug 17 14&#58;59 link1 -&gt; /tmp
&lt;/code&gt;


If you use &#039;cp -Rp&#039;, then &#039;link1&#039; will become a directory:

&lt;code&gt;
cp -Rp dir1 dir2
-rw-r--r--   1 flarg    group           0 Aug 17 14&#58;59 file1
drwxrwxrwx   7 flarg    groupl      1701 Aug 17 14&#58;59 link1
&lt;/code&gt;


You really want the &#039;-d&#039; flag to dereference any symbolic links.</description>
		<content:encoded><![CDATA[<p>In addition, I think you meant &#8216;cp -a&#8217;, which is equivilant to &#8216;cp -dpR&#8217;. The -d flag will dereference symbolic links.</p>
<p>&#8216;cp -Rp dir1 dir2&#8242; doesn&#8217;t preserve symlinks. It will instead copy the contents of the target:</p>
<p>If dir1 looks like this:</p>
<p><code><br />
-rw-r--r--   1 flarg    group           0 Aug 17 14&#58;59 file1<br />
lrwxrwxrwx   1 flarg group           4 Aug 17 14&#58;59 link1 -&gt; /tmp<br />
</code></p>
<p>If you use &#8216;cp -Rp&#8217;, then &#8216;link1&#8242; will become a directory:</p>
<p><code><br />
cp -Rp dir1 dir2<br />
-rw-r--r--   1 flarg    group           0 Aug 17 14&#58;59 file1<br />
drwxrwxrwx   7 flarg    groupl      1701 Aug 17 14&#58;59 link1<br />
</code></p>
<p>You really want the &#8216;-d&#8217; flag to dereference any symbolic links.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.tech-recipes.com/rx/513/copy-entire-contents-of-a-directory-and-preserve-permissions/comment-page-1/#comment-398</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Tue, 17 Aug 2004 14:34:09 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-398</guid>
		<description>&#039;cp -Rp&#039; is not supported on most Unixes. &#039;-Rp&#039; flags are only supported by the version of &#039;ls&#039; that comes with the &lt;a href=&quot;http://www.gnu.org/software/coreutils/&quot;&gt;GNU Core-utils&lt;/a&gt;, which is not installed everywhere.

The tar command will work on all versions of Unix.</description>
		<content:encoded><![CDATA[<p>&#8216;cp -Rp&#8217; is not supported on most Unixes. &#8216;-Rp&#8217; flags are only supported by the version of &#8216;ls&#8217; that comes with the <a href="http://www.gnu.org/software/coreutils/">GNU Core-utils</a>, which is not installed everywhere.</p>
<p>The tar command will work on all versions of Unix.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fall-line</title>
		<link>http://www.tech-recipes.com/rx/513/copy-entire-contents-of-a-directory-and-preserve-permissions/comment-page-1/#comment-270</link>
		<dc:creator>fall-line</dc:creator>
		<pubDate>Mon, 19 Jul 2004 09:43:39 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-270</guid>
		<description>what&#039;s wrong with cp -Rp dir1 dir2 ?</description>
		<content:encoded><![CDATA[<p>what&#8217;s wrong with cp -Rp dir1 dir2 ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
