<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>copy | Matt Crawford</title>
	<atom:link href="https://mattcrawford.me/tag/copy/feed/" rel="self" type="application/rss+xml" />
	<link>https://mattcrawford.me</link>
	<description>Personal blog and writings of a nudist in Iowa.</description>
	<lastBuildDate>Tue, 14 Jun 2022 23:36:24 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.4</generator>
<site xmlns="com-wordpress:feed-additions:1">176948450</site>	<item>
		<title>Robocopy</title>
		<link>https://mattcrawford.me/robocopy/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=robocopy</link>
					<comments>https://mattcrawford.me/robocopy/#respond</comments>
		
		<dc:creator><![CDATA[Matt Crawford]]></dc:creator>
		<pubDate>Mon, 21 Apr 2014 14:42:30 +0000</pubDate>
				<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[copy]]></category>
		<category><![CDATA[ntfs]]></category>
		<category><![CDATA[robocopy]]></category>
		<category><![CDATA[windows]]></category>
		<guid isPermaLink="false">http://twist3d.net/?p=540</guid>

					<description><![CDATA[<p>Robocopy is a robust file copy system that is built into windows which allows you to copy and move files with the permissions and shares intact. Robocopy is noted for capabilities above and beyond the built-in Windows copy and xcopy commands, including the following: Ability to tolerate network interruptions and resume copying. (incomplete files are marked with a date [&#8230;]</p>
The post <a href="https://mattcrawford.me/robocopy/">Robocopy</a> first appeared on <a href="https://mattcrawford.me">Matt Crawford</a>.]]></description>
										<content:encoded><![CDATA[<p><a href="http://en.wikipedia.org/wiki/Robocopy">Robocopy</a> is a robust file copy system that is built into windows which allows you to copy and move files with the permissions and shares intact.</p>
<p style="color: #252525;">Robocopy is noted for capabilities above and beyond the built-in Windows <a style="color: #0b0080;" title="Copy (command)" href="http://en.wikipedia.org/wiki/Copy_(command)">copy</a> and <a style="color: #0b0080;" title="XCOPY" href="http://en.wikipedia.org/wiki/XCOPY">xcopy</a> commands, including the following:</p>
<ul>
<li>Ability to tolerate network interruptions and resume copying. (incomplete files are marked with a date stamp of 1980-01-01 and contain a recovery record so Robocopy knows where to continue from)</li>
<li>Ability to skip <a style="color: #0b0080;" title="NTFS junction point" href="http://en.wikipedia.org/wiki/NTFS_junction_point">NTFS junction points</a> which can cause copying failures because of infinite loops (<code>/XJ</code>)</li>
<li>Ability to copy file data and attributes correctly, and to preserve original timestamps, as well as NTFS <a class="mw-redirect" style="color: #0b0080;" title="Access Control List" href="http://en.wikipedia.org/wiki/Access_Control_List">ACLs</a>, owner information, and audit information using <a class="mw-redirect" style="color: #0b0080;" title="Command line switch" href="http://en.wikipedia.org/wiki/Command_line_switch">command line switches</a>. (<code>/COPYALL</code> or <code>/COPY:</code>) Copying folder timestamps is also possible in later versions (<code>/DCOPY:T</code>).</li>
<li>Ability to assert the <a style="color: #0b0080;" title="Windows NT" href="http://en.wikipedia.org/wiki/Windows_NT">Windows NT</a> &#8220;backup right&#8221; (<code>/B</code>) so an administrator may copy an entire directory, including files denied readability to the administrator.</li>
<li>Persistence by default, with a programmable number of automatic retries if a file cannot be opened.</li>
<li>A &#8220;mirror&#8221; mode, which keeps trees in sync by optionally deleting files out of the destination that are no longer present in the source.</li>
<li>Ability to skip files that already appear in the destination folder with identical size and timestamp.</li>
<li>A continuously updated command-line progress indicator.</li>
<li>Ability to copy file and folder names exceeding 256 characters — up to a theoretical limit of 32,000 characters — without errors.<sup id="cite_ref-1" class="reference"><a style="color: #0b0080;" href="http://en.wikipedia.org/wiki/Robocopy#cite_note-1">[1]</a></sup></li>
<li>Multithreaded copying. (Windows 7 and Windows Server 2008 R2) <sup id="cite_ref-2" class="reference"><a style="color: #0b0080;" href="http://en.wikipedia.org/wiki/Robocopy#cite_note-2">[2]</a></sup></li>
<li>Return code<sup id="cite_ref-3" class="reference"><a style="color: #0b0080;" href="http://en.wikipedia.org/wiki/Robocopy#cite_note-3">[3]</a></sup> on program termination for batch file usage.</li>
</ul>
<p>Today I&#8217;m going to show you how I use robocopy and a script that I found that works for me.</p>
<p>I like to save the following code as a .bat file so I can run it easily as an administrator.</p>
<blockquote><p>@echo off</p>
<p>SET SORC=&#8221;D:Test Copy&#8221;<br />
SET DEST=&#8221;D:Companyshareshared&#8221;<br />
SET LOG=&#8221;D:Companysharesharedcopylog.log&#8221;</p>
<p>ROBOCOPY %SORC% %DEST% /E /ZB /DCOPY:T /COPYALL /R:1 /W:1 /V /TEE /LOG:%LOG%</p>
<p>:END<br />
pause</p></blockquote>
<p>The above code will copy subdirectories, time stamps, ntfs access controls, etc.</p>
<p>To learn more about what the above code means <a href="http://technet.microsoft.com/en-us/library/cc733145.aspx">visit this link</a>.</p>
<p>Hope this is helpful to anybody using this robust copy tool</p>The post <a href="https://mattcrawford.me/robocopy/">Robocopy</a> first appeared on <a href="https://mattcrawford.me">Matt Crawford</a>.]]></content:encoded>
					
					<wfw:commentRss>https://mattcrawford.me/robocopy/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">540</post-id>	</item>
	</channel>
</rss>
