{"id":116,"date":"2004-09-08T09:04:47","date_gmt":"2004-09-08T14:04:47","guid":{"rendered":"http:\/\/192.168.33.66\/wp\/?p=116"},"modified":"2004-09-08T09:04:47","modified_gmt":"2004-09-08T14:04:47","slug":"robocopy-use","status":"publish","type":"post","link":"http:\/\/www.wildow.com\/blog\/?p=116","title":{"rendered":"robocopy use"},"content":{"rendered":"<p>The Directory Replicator Service that is provided by Windows NT Server requires exclusive access to Netlogon and REPL$. When it doesn&#8217;t get exclusive access, replication fails.<\/p>\n<p>A better way to replicate is to use the ROBOCOPY utility from the <\/p>\n<p><!--more--><\/p>\n<p>Unlike the Replicator Service, ROBOCOPY can replicate any number of directories, handle very large files, and doesn&#8217;t require exclusive access. ROBOCOPY \/? returns:<\/p>\n<p>\nROBOCOPY v 1.71  :  Robust File Copy for Windows NT (from Supplement Two) <\/p>\n<p>Usage : ROBOCOPY source destination [file [file]&#8230;] [options] <br \/>\nsource : Source Directory (drive:\\path or \\\\server\\share\\path). <br \/>\ndestination : Destination Dir  (drive:\\path or \\\\server\\share\\path). <br \/>\nfile : File(s) to copy  (names\/wildcards &#8211; default is &#8220;*.*&#8221;). <br \/>\n\/S : copy Subdirectories, but not empty ones. <br \/>\n\/E : copy subdirectories, including Empty ones. <br \/>\n\/R:n : number of Retries on failed copies &#8211; default is 1 million. <br \/>\n\/W:n : Wait time between retries &#8211; default is 30 seconds. <br \/>\n\/REG : Save \/R:n and \/W:n in the Registry as default settings. <br \/>\n\/X : report all eXtra files, not just those selected. <br \/>\n\/V : produce Verbose output, showing skipped files. <br \/>\n\/L : List only &#8211; don&#8217;t copy, timestamp or delete any files. <br \/>\n\/ETA : show Estimated Time of Arrival of copied files. <br \/>\n\/MOVE : Move files and dirs (delete from source after copying). <br \/>\n\/PURGE : delete dest files\/dirs that no longer exist in source.<br \/>\nThere are at least 4 ways that you can use ROBOCOPY to do your replication:<br \/>\n1. A manually invoked batch file: <\/p>\n<p>\nrobocopy \\\\<SourceServer1>\\admin$\\system32\\repl\\export\\ \\\\<SourceServer1>\\admin$\\system32\\repl\\import \/s \/v \/r:1 \/w:1 \/eta <br \/>\nrobocopy \\\\<SourceServer1>\\admin$\\system32\\repl\\export\\ \\\\<DestinationServer1>\\admin$\\system32\\repl\\import \/s \/v \/r:1 \/w:1 \/eta<br \/>\nNOTE: <SourceServer1> and <DestinationServer1> are the names of the computers being synchronized.<br \/>\nThe first time that you replicate, use SCOPY to preserve permissions and then use ROBOCOPY which will maintain the permissions.<\/p>\n<p>2. You can cause the above batch file to continuously loop:<\/p>\n<p>\n:LOOP <br \/>\nrobocopy \\\\<SourceServer1>\\admin$\\system32\\repl\\export\\ \\\\<SourceServer1>\\admin$\\system32\\repl\\import \/s \/v \/r:1 \/w:1 \/eta <br \/>\nrobocopy \\\\<SourceServer1>\\admin$\\system32\\repl\\export\\ \\\\<DestinationServer1>\\admin$\\system32\\repl\\import \/s \/v \/r:1 \/w:1 \/eta <br \/>\nSleep 1800 <br \/>\ngoto LOOP<br \/>\nSleep is a Resource Kit utility. The above sleeps for 1800 seconds, <\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Directory Replicator Service that is provided by Windows NT Server requires exclusive access to Netlogon and REPL$. When it doesn&#8217;t get exclusive access, replication fails. A better way to replicate is to use the ROBOCOPY utility from the<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-116","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/116","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=116"}],"version-history":[{"count":0,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/116\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=116"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=116"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}