<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Command Line on Madhusudan Upadhyay — ICT Support Executive | Microsoft 365 &amp; Endpoint Management</title><link>https://madhusudanupadhyay.com.np/tags/command-line/</link><description>Recent content in Command Line on Madhusudan Upadhyay — ICT Support Executive | Microsoft 365 &amp; Endpoint Management</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 07 May 2024 00:00:00 +0000</lastBuildDate><atom:link href="https://madhusudanupadhyay.com.np/tags/command-line/index.xml" rel="self" type="application/rss+xml"/><item><title>Robocopy: Reliable File Copying Utility</title><link>https://madhusudanupadhyay.com.np/knowledge/robocopy-reliable-file-copying/</link><pubDate>Tue, 07 May 2024 00:00:00 +0000</pubDate><guid>https://madhusudanupadhyay.com.np/knowledge/robocopy-reliable-file-copying/</guid><description>&lt;p&gt;Robocopy (Robust File Copy) is Microsoft&amp;rsquo;s command-line directory replication tool, built into Windows since Vista/Server 2008. It replaces xcopy with superior reliability, resume capability, and advanced features for enterprise file operations.&lt;/p&gt;
&lt;h2 id="why-robocopy"&gt;Why Robocopy?&lt;/h2&gt;
&lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th&gt;Feature&lt;/th&gt;
 &lt;th&gt;xcopy&lt;/th&gt;
 &lt;th&gt;Robocopy&lt;/th&gt;
 &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
 &lt;td&gt;Resume on failure&lt;/td&gt;
 &lt;td&gt;❌&lt;/td&gt;
 &lt;td&gt;✅&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;Multi-threaded&lt;/td&gt;
 &lt;td&gt;❌&lt;/td&gt;
 &lt;td&gt;✅ (/MT)&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;Mirror directories&lt;/td&gt;
 &lt;td&gt;Limited&lt;/td&gt;
 &lt;td&gt;✅ (/MIR)&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;File attributes&lt;/td&gt;
 &lt;td&gt;Basic&lt;/td&gt;
 &lt;td&gt;Full preservation&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;Retry logic&lt;/td&gt;
 &lt;td&gt;None&lt;/td&gt;
 &lt;td&gt;Configurable&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;Logging&lt;/td&gt;
 &lt;td&gt;Minimal&lt;/td&gt;
 &lt;td&gt;Comprehensive&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;UNC/Long paths&lt;/td&gt;
 &lt;td&gt;Problematic&lt;/td&gt;
 &lt;td&gt;Native support&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;Bandwidth throttling&lt;/td&gt;
 &lt;td&gt;❌&lt;/td&gt;
 &lt;td&gt;✅ (/IPG)&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
&lt;h2 id="essential-syntax"&gt;Essential Syntax&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#e6edf3;background-color:#0d1117;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-cmd" data-lang="cmd"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;robocopy &amp;lt;Source&amp;gt; &amp;lt;Destination&amp;gt; [&amp;lt;File&amp;gt;[ ...]] [&amp;lt;Options&amp;gt;]
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;strong&gt;Key concept&lt;/strong&gt;: Robocopy works with &lt;em&gt;directories&lt;/em&gt;, not individual files. Source and destination are folder paths.&lt;/p&gt;</description></item></channel></rss>