{"id":954,"date":"2010-03-12T08:42:00","date_gmt":"2010-03-12T11:42:00","guid":{"rendered":"http:\/\/www.radians.com.ar\/blog\/?p=954"},"modified":"2010-03-12T08:42:00","modified_gmt":"2010-03-12T11:42:00","slug":"review-migracin-de-datos-con-robocopy","status":"publish","type":"post","link":"https:\/\/www.radians.com.ar\/blog\/?p=954","title":{"rendered":"REVIEW: Migraci&oacute;n de datos con ROBOCOPY&hellip;"},"content":{"rendered":"<p>Como estoy de vacaciones, queria republicar esta nota en la que he estado recibiendo muchas consultas. Pueden ver los comentarios en el post original en <a href=\"http:\/\/www.radians.com.ar\/blog\/?p=60\">Migraci\u00f3n de datos con ROBOCOPY\u2026<\/a><\/p>\n<p>Saludos, Roberto Di Lello    <br \/>&#8212;&#8212;<\/p>\n<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\u2026<\/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 \/><font color=\"#ff0000\" size=\"1\"><strong>ROBOCOPY\u201d\\\\ServerOrigen\\E$\\FILES\u201d \u201c\\\\dc02MLM\\e$\\Privados\u201d \/B \/S \/E \/MIR \/R:6        <br \/>\/W:10 \/V \/NP \/LOG+:Rcpy_Diferencial.log<\/strong><\/font><\/p>\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\u2019Lello.<\/p>\n<p><font size=\"1\">\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014-<\/font><\/p>\n<p><strong><font size=\"1\">ROBOCOPY :: Robust File Copy for Windows :: Version XP010<\/font><\/strong><\/p>\n<p><font size=\"1\">\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014- <\/font><\/p>\n<p><font size=\"1\">Started : Mon Mar 19 18:18:07 2007      <br \/><\/font><font size=\"1\">Usage :: ROBOCOPY source destination [file [file]\u2026] [options]      <br \/><\/font><font size=\"1\">source :: Source Directory (drive:\\path or <a href=\"file:\/\/\\\\server\\share\\path\">\\\\server\\share\\path<\/a>).       <br \/><\/font><font size=\"1\">destination :: Destination Dir (drive:\\path or <a href=\"file:\/\/\\\\server\\share\\path\">\\\\server\\share\\path<\/a>).|       <br \/><\/font><font size=\"1\">file :: File(s) to copy (names\/wildcards: default is \u201c*.*\u201d). <\/font><\/p>\n<p><strong><font size=\"1\">:: Copy options :        <br \/><\/font><\/strong><font size=\"1\">\/S :: copy Subdirectories, but not empty ones.      <br \/><\/font><font size=\"1\">\/E :: copy subdirectories, including Empty ones.      <br \/><\/font><font size=\"1\">\/LEV:n :: only copy the top n LEVels of the source directory tree.      <br \/><\/font><font size=\"1\">\/B :: copy files in Backup mode.      <br \/><\/font><font size=\"1\">\/ZB :: use restartable mode; if access denied use Backup mode.      <br \/><\/font><font size=\"1\">\/COPY:copyflag[s] :: what to COPY (default is \/COPY:DAT).      <br \/><\/font><font size=\"1\">(copyflags : D=Data, A=Attributes, T=Timestamps).      <br \/><\/font><font size=\"1\">(S=Security=NTFS ACLs, O=Owner info, U=aUditing info).      <br \/><\/font><font size=\"1\">\/SEC :: copy files with SECurity (equivalent to \/COPY:DATS).      <br \/><\/font><font size=\"1\">\/COPYALL :: COPY ALL file info (equivalent to \/COPY:DATSOU).      <br \/><\/font><font size=\"1\">\/NOCOPY :: COPY NO file info (useful with \/PURGE).      <br \/><\/font><font size=\"1\">\/PURGE :: delete dest files\/dirs that no longer exist in source.      <br \/><\/font><font size=\"1\">\/MIR :: MIRror a directory tree (equivalent to \/E plus \/PURGE).      <br \/><\/font><font size=\"1\">\/MOV :: MOVe files (delete from source after copying).      <br \/><\/font><font size=\"1\">\/MOVE :: MOVE files AND dirs (delete from source after copying).      <br \/><\/font><font size=\"1\">\/A+:[RASHNT] :: add the given Attributes to copied files.      <br \/><\/font><font size=\"1\">\/A-:[RASHNT] :: remove the given Attributes from copied files.      <br \/><\/font><font size=\"1\">\/CREATE :: CREATE directory tree and zero-length files only.      <br \/><\/font><font size=\"1\">\/FAT :: create destination files using 8.3 FAT file names only.      <br \/><\/font><font size=\"1\">\/FFT :: assume FAT File Times (2-second granularity).      <br \/><\/font><font size=\"1\">\/256 :: turn off very long path (&gt; 256 characters) support.      <br \/><\/font><font size=\"1\">\/MON:n :: MONitor source; run again when more than n changes seen.      <br \/><\/font><font size=\"1\">\/MOT:m :: MOnitor source; run again in m minutes Time, if changed.      <br \/><\/font><font size=\"1\">\/RH:hhmm-hhmm :: Run Hours \u2013 times when new copies may be started.      <br \/><\/font><font size=\"1\">\/PF :: check run hours on a Per File (not per pass) basis.      <br \/><\/font><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 :        <br \/><\/font><\/strong><font size=\"1\">\/A :: copy only files with the Archive attribute set.      <br \/><\/font><font size=\"1\">\/M :: copy only files with the Archive attribute and reset it.      <br \/><\/font><font size=\"1\">\/IA:[RASHCNETO] :: Include only files with any of the given Attributes set.      <br \/><\/font><font size=\"1\">\/XA:[RASHCNETO] :: eXclude files with any of the given Attributes set.      <br \/><\/font><font size=\"1\">\/XF file [file]\u2026 :: eXclude Files matching given names\/paths\/wildcards.      <br \/><\/font><font size=\"1\">\/XD dirs [dirs]\u2026 :: eXclude Directories matching given names\/paths.      <br \/><\/font><font size=\"1\">\/XC :: eXclude Changed files.      <br \/><\/font><font size=\"1\">\/XN :: eXclude Newer files.      <br \/><\/font><font size=\"1\">\/XO :: eXclude Older files.      <br \/><\/font><font size=\"1\">\/XX :: eXclude eXtra files and directories.      <br \/><\/font><font size=\"1\">\/XL :: eXclude Lonely files and directories.      <br \/><\/font><font size=\"1\">\/IS :: Include Same files.      <br \/><\/font><font size=\"1\">\/IT :: Include Tweaked files.      <br \/><\/font><font size=\"1\">\/MAX:n :: MAXimum file size \u2013 exclude files bigger than n bytes.      <br \/><\/font><font size=\"1\">\/MIN:n :: MINimum file size \u2013 exclude files smaller than n bytes.      <br \/><\/font><font size=\"1\">\/MAXAGE:n :: MAXimum file AGE \u2013 exclude files older than n days\/date.      <br \/><\/font><font size=\"1\">\/MINAGE:n :: MINimum file AGE \u2013 exclude files newer than n days\/date.      <br \/><\/font><font size=\"1\">\/MAXLAD:n :: MAXimum Last Access Date \u2013 exclude files unused since n.      <br \/><\/font><font size=\"1\">\/MINLAD:n :: MINimum Last Access Date \u2013 exclude files used since n.      <br \/><\/font><font size=\"1\">(If n &lt; 1900 then n = n days, else n = YYYYMMDD date).      <br \/><\/font><font size=\"1\">\/XJ :: eXclude Junction points. (normally included by default). <\/font><\/p>\n<p><strong><font size=\"1\">:: Retry Options :        <br \/><\/font><\/strong><font size=\"1\">\/R:n :: number of Retries on failed copies: default 1 million.      <br \/><\/font><font size=\"1\">\/W:n :: Wait time between retries: default is 30 seconds.      <br \/><\/font><font size=\"1\">\/REG :: Save \/R:n and \/W:n in the Registry as default settings.      <br \/><\/font><font size=\"1\">\/TBD :: wait for sharenames To Be Defined (retry error 67). <\/font><\/p>\n<p><strong><font size=\"1\">:: Logging Options :        <br \/><\/font><\/strong><font size=\"1\">\/L :: List only \u2013 don\u2019t copy, timestamp or delete any files.      <br \/><\/font><font size=\"1\">\/X :: report all eXtra files, not just those selected.      <br \/><\/font><font size=\"1\">\/V :: produce Verbose output, showing skipped files.      <br \/><\/font><font size=\"1\">\/TS :: include source file Time Stamps in the output.      <br \/><\/font><font size=\"1\">\/FP :: include Full Pathname of files in the output.      <br \/><\/font><font size=\"1\">\/NS :: No Size \u2013 don\u2019t log file sizes.      <br \/><\/font><font size=\"1\">\/NC :: No Class \u2013 don\u2019t log file classes.      <br \/><\/font><font size=\"1\">\/NFL :: No File List \u2013 don\u2019t log file names.      <br \/><\/font><font size=\"1\">\/NDL :: No Directory List \u2013 don\u2019t log directory names.      <br \/><\/font><font size=\"1\">\/NP :: No Progress \u2013 don\u2019t display % copied.      <br \/><\/font><font size=\"1\">\/ETA :: show Estimated Time of Arrival of copied files.      <br \/><\/font><font size=\"1\">\/LOG:file :: output status to LOG file (overwrite existing log).      <br \/><\/font><font size=\"1\">\/LOG+:file :: output status to LOG file (append to existing log).      <br \/><\/font><font size=\"1\">\/TEE :: output to console window, as well as the log file.      <br \/><\/font><font size=\"1\">\/NJH :: No Job Header.      <br \/><\/font><font size=\"1\">\/NJS :: No Job Summary. <\/font><\/p>\n<p><strong><font size=\"1\">:: Job Options :        <br \/><\/font><\/strong><font size=\"1\">\/JOB:jobname :: take parameters from the named JOB file.      <br \/><\/font><font size=\"1\">\/SAVE:jobname :: SAVE parameters to the named job file      <br \/><\/font><font size=\"1\">\/QUIT :: QUIT after processing command line (to view parameters).      <br \/><\/font><font size=\"1\">\/NOSD :: NO Source Directory is specified.      <br \/><\/font><font size=\"1\">\/NODD :: NO Destination Directory is specified.      <br \/><\/font><font size=\"1\">\/IF :: Include the following Files.<\/font><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Como estoy de vacaciones, queria republicar esta nota en la que he estado recibiendo muchas&#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":[12,11,14,69,13],"tags":[],"class_list":["post-954","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-2003-r2","category-2008-r2","category-review","category-windows-7","category-vista-xp"],"_links":{"self":[{"href":"https:\/\/www.radians.com.ar\/blog\/index.php?rest_route=\/wp\/v2\/posts\/954","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=954"}],"version-history":[{"count":0,"href":"https:\/\/www.radians.com.ar\/blog\/index.php?rest_route=\/wp\/v2\/posts\/954\/revisions"}],"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=954"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.radians.com.ar\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=954"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.radians.com.ar\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}