
{"id":544,"date":"2011-09-13T21:10:08","date_gmt":"2011-09-13T21:10:08","guid":{"rendered":"http:\/\/tech-no.104.210.61.21.xip.io\/?p=544"},"modified":"2011-09-14T00:01:33","modified_gmt":"2011-09-14T00:01:33","slug":"mirror-data-from-one-server-to-another-for-an-adhoc-backup-or-to-stage-dfs-folders-prior-to-replication-setup","status":"publish","type":"post","link":"https:\/\/tech-no.org\/?p=544","title":{"rendered":"Mirror data from one server to another for an ADHOC backup or to stage DFS folders prior to replication setup."},"content":{"rendered":"<blockquote><p>If you need to replicate data between windows machines you can use Robocopy to handle this task. i wont go into too much detail, but windows 7 and server 2008 includes robocopy as part of the base install. Try it out and let me know what you think.<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p>@ECHO OFF<br \/>\nSETLOCAL<\/p>\n<p>SET _source=\\\\FileServ1\\e$\\users<\/p>\n<p>SET _dest=\\\\FileServ2\\e$\\BackupUsers<\/p>\n<p>SET _what=\/COPYALL \/B \/SEC \/MIR \/MOT:n<br \/>\n:: \/COPYALL :: COPY ALL file info<br \/>\n:: \/B :: copy files in Backup mode.<br \/>\n:: \/SEC :: copy files with SECurity<br \/>\n:: \/MIR :: MIRror a directory tree<\/p>\n<p>::\/MOT:n :: Monitor folder for changes on interval (minutes)\u00a0to sync files.<\/p>\n<p>SET _options=\/R:0 \/W:0 \/LOG:MyLogfile.txt \/NFL \/NDL<br \/>\n:: \/R:n :: number of Retries<br \/>\n:: \/W:n :: Wait time between retries<br \/>\n:: \/LOG :: Output log file<br \/>\n:: \/NFL :: No file logging<br \/>\n:: \/NDL :: No dir logging<\/p>\n<p>ROBOCOPY %_source% %_dest% %_what% %_options%<\/p>\n<p>&nbsp;<\/p>\n<p>simply create a .bat file with the code above and run it from an elevated command prompt (after editing the source and destination of course)\u00a0 and it will make sure you have a copy on another server.<\/p>\n<p>you can also add a job to zip up the folder that was created last time to keep archives or rely on shadow copy settings. either way its pretty cool.<\/p>\n<p>&nbsp;<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>If you need to replicate data between windows machines you can use Robocopy to handle this task. i wont go into too much detail, but windows 7 and server 2008 includes robocopy as part of the base install. Try it out and let me know what you think. &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; @ECHO OFF SETLOCAL SET _source=\\\\FileServ1\\e$\\users SET &hellip;<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/tech-no.org\/index.php?rest_route=\/wp\/v2\/posts\/544"}],"collection":[{"href":"https:\/\/tech-no.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech-no.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech-no.org\/index.php?rest_route=\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/tech-no.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=544"}],"version-history":[{"count":3,"href":"https:\/\/tech-no.org\/index.php?rest_route=\/wp\/v2\/posts\/544\/revisions"}],"predecessor-version":[{"id":546,"href":"https:\/\/tech-no.org\/index.php?rest_route=\/wp\/v2\/posts\/544\/revisions\/546"}],"wp:attachment":[{"href":"https:\/\/tech-no.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=544"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech-no.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=544"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech-no.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=544"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}