{"id":60,"date":"2007-03-19T19:30:43","date_gmt":"2007-03-19T22:30:43","guid":{"rendered":"http:\/\/www.radians.com.ar\/blog\/?p=60"},"modified":"2015-09-18T19:23:30","modified_gmt":"2015-09-18T22:23:30","slug":"migracin-de-datos-con-robocopy","status":"publish","type":"post","link":"https:\/\/www.radians.com.ar\/blog\/?p=60","title":{"rendered":"Migraci\u00f3n de datos con ROBOCOPY\u2026 {HowTo}"},"content":{"rendered":"<p>Ya he hablado de como migrar datos de un server a otro, he comentado la forma de hacerlo por medio de dos herramientas FSMT y Robocopy (<a href=\"http:\/\/www.radians.com.ar\/blog\/?p=22\"><font color=\"#0000ff\"><u><strong>m\u00e1s info&#8230;<\/strong><\/u><\/font><\/a>). Ahora en esta dare un script con el cual se puede hacer una copia diferencial de los datos. La sintaxis correspondiente seria:<br \/>\n<font size=\"1\" color=\"#ff0000\"><strong>ROBOCOPY&#8221;\\\\ServerOrigen\\E$\\FILES&#8221; &#8220;\\\\dc02MLM\\e$\\Privados&#8221; \/B \/S \/E \/MIR \/R:6<br \/>\n\/W:10 \/V \/NP \/LOG+:Rcpy_Diferencial.log<\/strong><\/font><\/p>\n<h6><\/h6>\n<p>La opci\u00f3n \/B permite copiar archivos en modo backup, \/R:X hace X cantidad de retries sobre los archivos ante errores, \/W:X es el tiempo de espera entre cada retry. Igualmente hay muchas opciones de esta utilidad, aqui les paso todas las opciones de la versi\u00f3n XP010.<\/p>\n<p>Espero que les sea util. Saludos, Roberto Di&#8217;Lello.<\/p>\n<p><font size=\"1\">&#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;&#8212;-<\/font><\/p>\n<p><strong><font size=\"1\">ROBOCOPY :: Robust File Copy for Windows :: Version XP010<\/font><\/strong><\/p>\n<p><font size=\"1\">&#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;&#8212;- <\/font><\/p>\n<p><font size=\"1\">Started : Mon Mar 19 18:18:07 2007 <\/font><\/p>\n<p><font size=\"1\">Usage :: ROBOCOPY source destination [file [file]&#8230;] [options] <\/font><\/p>\n<p><font size=\"1\">source :: Source Directory (drive:\\path or \\\\server\\share\\path).<\/font><\/p>\n<p><font size=\"1\">destination :: Destination Dir (drive:\\path or \\\\server\\share\\path).|<\/font><\/p>\n<p><font size=\"1\">file :: File(s) to copy (names\/wildcards: default is &#8220;*.*&#8221;). <\/font><\/p>\n<p><strong><font size=\"1\">:: Copy options :<\/font><\/strong><\/p>\n<p><font size=\"1\">\/S :: copy Subdirectories, but not empty ones.<\/font><\/p>\n<p><font size=\"1\">\/E :: copy subdirectories, including Empty ones.<\/font><\/p>\n<p><font size=\"1\">\/LEV:n :: only copy the top n LEVels of the source directory tree. <\/font><\/p>\n<p><font size=\"1\">\/B :: copy files in Backup mode.<\/font><\/p>\n<p><font size=\"1\">\/ZB :: use restartable mode; if access denied use Backup mode. <\/font><\/p>\n<p><font size=\"1\">\/COPY:copyflag[s] :: what to COPY (default is \/COPY:DAT).<\/font><\/p>\n<p><font size=\"1\">(copyflags : D=Data, A=Attributes, T=Timestamps).<\/font><\/p>\n<p><font size=\"1\">(S=Security=NTFS ACLs, O=Owner info, U=aUditing info). <\/font><\/p>\n<p><font size=\"1\">\/SEC :: copy files with SECurity (equivalent to \/COPY:DATS).<\/font><\/p>\n<p><font size=\"1\">\/COPYALL :: COPY ALL file info (equivalent to \/COPY:DATSOU).<\/font><\/p>\n<p><font size=\"1\">\/NOCOPY :: COPY NO file info (useful with \/PURGE). <\/font><\/p>\n<p><font size=\"1\">\/PURGE :: delete dest files\/dirs that no longer exist in source.<\/font><\/p>\n<p><font size=\"1\">\/MIR :: MIRror a directory tree (equivalent to \/E plus \/PURGE). <\/font><\/p>\n<p><font size=\"1\">\/MOV :: MOVe files (delete from source after copying).<\/font><\/p>\n<p><font size=\"1\">\/MOVE :: MOVE files AND dirs (delete from source after copying). <\/font><\/p>\n<p><font size=\"1\">\/A+:[RASHNT] :: add the given Attributes to copied files.<\/font><\/p>\n<p><font size=\"1\">\/A-:[RASHNT] :: remove the given Attributes from copied files. <\/font><\/p>\n<p><font size=\"1\">\/CREATE :: CREATE directory tree and zero-length files only.<\/font><\/p>\n<p><font size=\"1\">\/FAT :: create destination files using 8.3 FAT file names only.<\/font><\/p>\n<p><font size=\"1\">\/FFT :: assume FAT File Times (2-second granularity).<\/font><\/p>\n<p><font size=\"1\">\/256 :: turn off very long path (&gt; 256 characters) support. <\/font><\/p>\n<p><font size=\"1\">\/MON:n :: MONitor source; run again when more than n changes seen.<\/font><\/p>\n<p><font size=\"1\">\/MOT:m :: MOnitor source; run again in m minutes Time, if changed. <\/font><\/p>\n<p><font size=\"1\">\/RH:hhmm-hhmm :: Run Hours &#8211; times when new copies may be started.<\/font><\/p>\n<p><font size=\"1\">\/PF :: check run hours on a Per File (not per pass) basis. <\/font><\/p>\n<p><font size=\"1\">\/IPG:n :: Inter-Packet Gap (ms), to free bandwidth on slow lines. <\/font><\/p>\n<p><strong><font size=\"1\">:: File Selection Options :<\/font><\/strong><\/p>\n<p><font size=\"1\">\/A :: copy only files with the Archive attribute set.<\/font><\/p>\n<p><font size=\"1\">\/M :: copy only files with the Archive attribute and reset it.<\/font><\/p>\n<p><font size=\"1\">\/IA:[RASHCNETO] :: Include only files with any of the given Attributes set.<\/font><\/p>\n<p><font size=\"1\">\/XA:[RASHCNETO] :: eXclude files with any of the given Attributes set. <\/font><\/p>\n<p><font size=\"1\">\/XF file [file]&#8230; :: eXclude Files matching given names\/paths\/wildcards.<\/font><\/p>\n<p><font size=\"1\">\/XD dirs [dirs]&#8230; :: eXclude Directories matching given names\/paths. <\/font><\/p>\n<p><font size=\"1\">\/XC :: eXclude Changed files.<\/font><\/p>\n<p><font size=\"1\">\/XN :: eXclude Newer files.<\/font><\/p>\n<p><font size=\"1\">\/XO :: eXclude Older files.<\/font><\/p>\n<p><font size=\"1\">\/XX :: eXclude eXtra files and directories.<\/font><\/p>\n<p><font size=\"1\">\/XL :: eXclude Lonely files and directories.<\/font><\/p>\n<p><font size=\"1\">\/IS :: Include Same files.<\/font><\/p>\n<p><font size=\"1\">\/IT :: Include Tweaked files. <\/font><\/p>\n<p><font size=\"1\">\/MAX:n :: MAXimum file size &#8211; exclude files bigger than n bytes.<\/font><\/p>\n<p><font size=\"1\">\/MIN:n :: MINimum file size &#8211; exclude files smaller than n bytes. <\/font><\/p>\n<p><font size=\"1\">\/MAXAGE:n :: MAXimum file AGE &#8211; exclude files older than n days\/date.<\/font><\/p>\n<p><font size=\"1\">\/MINAGE:n :: MINimum file AGE &#8211; exclude files newer than n days\/date.<\/font><\/p>\n<p><font size=\"1\">\/MAXLAD:n :: MAXimum Last Access Date &#8211; exclude files unused since n.<\/font><\/p>\n<p><font size=\"1\">\/MINLAD:n :: MINimum Last Access Date &#8211; exclude files used since n.<\/font><\/p>\n<p><font size=\"1\">(If n &lt; 1900 then n = n days, else n = YYYYMMDD date). <\/font><\/p>\n<p><font size=\"1\">\/XJ :: eXclude Junction points. (normally included by default). <\/font><\/p>\n<p><strong><font size=\"1\">:: Retry Options :<\/font><\/strong><\/p>\n<p><font size=\"1\">\/R:n :: number of Retries on failed copies: default 1 million.<\/font><\/p>\n<p><font size=\"1\">\/W:n :: Wait time between retries: default is 30 seconds. <\/font><\/p>\n<p><font size=\"1\">\/REG :: Save \/R:n and \/W:n in the Registry as default settings. <\/font><\/p>\n<p><font size=\"1\">\/TBD :: wait for sharenames To Be Defined (retry error 67). <\/font><\/p>\n<p><strong><font size=\"1\">:: Logging Options :<\/font><\/strong><\/p>\n<p><font size=\"1\">\/L :: List only &#8211; don&#8217;t copy, timestamp or delete any files.<\/font><\/p>\n<p><font size=\"1\">\/X :: report all eXtra files, not just those selected.<\/font><\/p>\n<p><font size=\"1\">\/V :: produce Verbose output, showing skipped files.<\/font><\/p>\n<p><font size=\"1\">\/TS :: include source file Time Stamps in the output.<\/font><\/p>\n<p><font size=\"1\">\/FP :: include Full Pathname of files in the output. <\/font><\/p>\n<p><font size=\"1\">\/NS :: No Size &#8211; don&#8217;t log file sizes.<\/font><\/p>\n<p><font size=\"1\">\/NC :: No Class &#8211; don&#8217;t log file classes.<\/font><\/p>\n<p><font size=\"1\">\/NFL :: No File List &#8211; don&#8217;t log file names.<\/font><\/p>\n<p><font size=\"1\">\/NDL :: No Directory List &#8211; don&#8217;t log directory names. <\/font><\/p>\n<p><font size=\"1\">\/NP :: No Progress &#8211; don&#8217;t display % copied.<\/font><\/p>\n<p><font size=\"1\">\/ETA :: show Estimated Time of Arrival of copied files. <\/font><\/p>\n<p><font size=\"1\">\/LOG:file :: output status to LOG file (overwrite existing log).<\/font><\/p>\n<p><font size=\"1\">\/LOG+:file :: output status to LOG file (append to existing log). <\/font><\/p>\n<p><font size=\"1\">\/TEE :: output to console window, as well as the log file. <\/font><\/p>\n<p><font size=\"1\">\/NJH :: No Job Header.<\/font><\/p>\n<p><font size=\"1\">\/NJS :: No Job Summary. <\/font><\/p>\n<p><strong><font size=\"1\">:: Job Options :<\/font><\/strong><\/p>\n<p><font size=\"1\">\/JOB:jobname :: take parameters from the named JOB file.<\/font><\/p>\n<p><font size=\"1\">\/SAVE:jobname :: SAVE parameters to the named job file<\/font><\/p>\n<p><font size=\"1\">\/QUIT :: QUIT after processing command line (to view parameters). <\/font><\/p>\n<p><font size=\"1\">\/NOSD :: NO Source Directory is specified.<\/font><\/p>\n<p><font size=\"1\">\/NODD :: NO Destination Directory is specified.<\/font><\/p>\n<p><font size=\"1\">\/IF :: Include the following Files.<\/font><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ya he hablado de como migrar datos de un server a otro, he comentado la&#8230;<\/p>\n","protected":false},"author":1,"featured_media":4291,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[4,6],"tags":[197,196,192,215,301,194,195,243],"class_list":["post-60","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-scripting","category-tools","tag-file-server","tag-robocopy","tag-script","tag-sbs-howto","tag-tools","tag-windows-server-2003-r2","tag-windows-server-2008-r2","tag-windows-server-2012-r2"],"_links":{"self":[{"href":"https:\/\/www.radians.com.ar\/blog\/index.php?rest_route=\/wp\/v2\/posts\/60","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.radians.com.ar\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.radians.com.ar\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.radians.com.ar\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.radians.com.ar\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=60"}],"version-history":[{"count":4,"href":"https:\/\/www.radians.com.ar\/blog\/index.php?rest_route=\/wp\/v2\/posts\/60\/revisions"}],"predecessor-version":[{"id":2931,"href":"https:\/\/www.radians.com.ar\/blog\/index.php?rest_route=\/wp\/v2\/posts\/60\/revisions\/2931"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.radians.com.ar\/blog\/index.php?rest_route=\/wp\/v2\/media\/4291"}],"wp:attachment":[{"href":"https:\/\/www.radians.com.ar\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=60"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.radians.com.ar\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=60"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.radians.com.ar\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=60"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}