{"id":816,"date":"2009-11-13T13:00:00","date_gmt":"2009-11-13T16:00:00","guid":{"rendered":"http:\/\/www.radians.com.ar\/blog\/?p=816"},"modified":"2009-11-28T16:37:52","modified_gmt":"2009-11-28T19:37:52","slug":"migracin-de-datos-con-robocopy-2","status":"publish","type":"post","link":"https:\/\/www.radians.com.ar\/blog\/?p=816","title":{"rendered":"Migraci&oacute;n de datos con ROBOCOPY&hellip;"},"content":{"rendered":"<p><a href=\"http:\/\/www.radians.com.ar\/Articulos\/Images\/MigracindedatosconROBOCOPY_102C1\/Copyicon256.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; margin-left: 0px; border-left-width: 0px; margin-right: 0px\" title=\"Copy-icon-256\" border=\"0\" alt=\"Copy-icon-256\" align=\"left\" src=\"http:\/\/www.radians.com.ar\/Articulos\/Images\/MigracindedatosconROBOCOPY_102C1\/Copyicon256_thumb.png\" width=\"246\" height=\"328\" \/><\/a> 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\"><u><strong>m\u00e1s info\u2026<\/strong><\/u><\/a>). <\/p>\n<p>Ahora en esta dare un script con el cual se puede hacer una copia diferencial de los datos. <\/p>\n<p>La sintaxis correspondiente seria:<\/p>\n<p><font size=\"3\"><font face=\"OCR A Std\"><font color=\"#ff0000\">ROBOCOPY          <br \/>\u201d\\\\ServerOrigen\\E$\\FILES\u201d \u201c\\\\dc02MLM\\e$\\Privados\u201d           <br \/>\/B \/S \/E \/MIR \/R:6 \/W:10 \/V \/NP           <br \/>\/LOG+:Rcpy_Diferencial.log<\/font><\/font><\/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><font color=\"#ff0000\" size=\"2\" face=\"OCR A Std\">Recordemos que si lo queremos ejecutar en un Windows Vista, Windows 7 o Windows Server 2008, debemos ejecutarlo con permisos de administrador. Requiere elevaci\u00f3n.<\/font><\/p>\n<p>Espero que les sea util. Saludos, Roberto Di\u2019Lello.<\/p>\n<p>\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-    <br \/><strong>ROBOCOPY :: Robust File Copy for Windows :: Version XP010      <br \/><\/strong>\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- <\/p>\n<p>Started : Mon Mar 19 18:18:07 2007    <br \/>Usage :: ROBOCOPY source destination [file [file]\u2026] [options]     <br \/>source :: Source Directory (drive:\\path or <a href=\"file:\/\/\\\\server\\share\\path\">\\\\server\\share\\path<\/a>).     <br \/>destination :: Destination Dir (drive:\\path or <a href=\"file:\/\/\\\\server\\share\\path\">\\\\server\\share\\path<\/a>).|     <br \/>file :: File(s) to copy (names\/wildcards: default is \u201c*.*\u201d). <\/p>\n<p><strong>:: Copy options :      <br \/><\/strong>\/S :: copy Subdirectories, but not empty ones.     <br \/>\/E :: copy subdirectories, including Empty ones.     <br \/>\/LEV:n :: only copy the top n LEVels of the source directory tree.     <br \/>\/B :: copy files in Backup mode.     <br \/>\/ZB :: use restartable mode; if access denied use Backup mode.     <br \/>\/COPY:copyflag[s] :: what to COPY (default is \/COPY:DAT).     <br \/>(copyflags : D=Data, A=Attributes, T=Timestamps).     <br \/>(S=Security=NTFS ACLs, O=Owner info, U=aUditing info).     <br \/>\/SEC :: copy files with SECurity (equivalent to \/COPY:DATS).     <br \/>\/COPYALL :: COPY ALL file info (equivalent to \/COPY:DATSOU).     <br \/>\/NOCOPY :: COPY NO file info (useful with \/PURGE).     <br \/>\/PURGE :: delete dest files\/dirs that no longer exist in source.     <br \/>\/MIR :: MIRror a directory tree (equivalent to \/E plus \/PURGE).     <br \/>\/MOV :: MOVe files (delete from source after copying).     <br \/>\/MOVE :: MOVE files AND dirs (delete from source after copying). \/A+:[RASHNT] :: add the given Attributes to copied files.     <br \/>\/A-:[RASHNT] :: remove the given Attributes from copied files.     <br \/>\/CREATE :: CREATE directory tree and zero-length files only.     <br \/>\/FAT :: create destination files using 8.3 FAT file names only.     <br \/>\/FFT :: assume FAT File Times (2-second granularity).     <br \/>\/256 :: turn off very long path (&gt; 256 characters) support.     <br \/>\/MON:n :: MONitor source; run again when more than n changes seen.     <br \/>\/MOT:m :: MOnitor source; run again in m minutes Time, if changed.     <br \/>\/RH:hhmm-hhmm :: Run Hours \u2013 times when new copies may be started.     <br \/>\/PF :: check run hours on a Per File (not per pass) basis.     <br \/>\/IPG:n :: Inter-Packet Gap (ms), to free bandwidth on slow lines. <\/p>\n<p><strong>:: File Selection Options :      <br \/><\/strong>\/A :: copy only files with the Archive attribute set.     <br \/>\/M :: copy only files with the Archive attribute and reset it.     <br \/>\/IA:[RASHCNETO] :: Include only files with any of the given Attributes set.     <br \/>\/XA:[RASHCNETO] :: eXclude files with any of the given Attributes set.     <br \/>\/XF file [file]\u2026 :: eXclude Files matching given names\/paths\/wildcards.     <br \/>\/XD dirs [dirs]\u2026 :: eXclude Directories matching given names\/paths.     <br \/>\/XC :: eXclude Changed files.     <br \/>\/XN :: eXclude Newer files.     <br \/>\/XO :: eXclude Older files.     <br \/>\/XX :: eXclude eXtra files and directories.     <br \/>\/XL :: eXclude Lonely files and directories.     <br \/>\/IS :: Include Same files.     <br \/>\/IT :: Include Tweaked files.     <br \/>\/MAX:n :: MAXimum file size \u2013 exclude files bigger than n bytes.     <br \/>\/MIN:n :: MINimum file size \u2013 exclude files smaller than n bytes.     <br \/>\/MAXAGE:n :: MAXimum file AGE \u2013 exclude files older than n days\/date.     <br \/>\/MINAGE:n :: MINimum file AGE \u2013 exclude files newer than n days\/date.     <br \/>\/MAXLAD:n :: MAXimum Last Access Date \u2013 exclude files unused since n.     <br \/>\/MINLAD:n :: MINimum Last Access Date \u2013 exclude files used since n.     <br \/>(If n &lt; 1900 then n = n days, else n = YYYYMMDD date).     <br \/>\/XJ :: eXclude Junction points. (normally included by default). <\/p>\n<p><strong>:: Retry Options :      <br \/><\/strong>\/R:n :: number of Retries on failed copies: default 1 million.     <br \/>\/W:n :: Wait time between retries: default is 30 seconds.     <br \/>\/REG :: Save \/R:n and \/W:n in the Registry as default settings.     <br \/>\/TBD :: wait for sharenames To Be Defined (retry error 67). <\/p>\n<p><strong>:: Logging Options :      <br \/><\/strong>\/L :: List only \u2013 don\u2019t copy, timestamp or delete any files.     <br \/>\/X :: report all eXtra files, not just those selected.     <br \/>\/V :: produce Verbose output, showing skipped files.     <br \/>\/TS :: include source file Time Stamps in the output.     <br \/>\/FP :: include Full Pathname of files in the output.     <br \/>\/NS :: No Size \u2013 don\u2019t log file sizes.     <br \/>\/NC :: No Class \u2013 don\u2019t log file classes.     <br \/>\/NFL :: No File List \u2013 don\u2019t log file names.     <br \/>\/NDL :: No Directory List \u2013 don\u2019t log directory names.     <br \/>\/NP :: No Progress \u2013 don\u2019t display % copied.     <br \/>\/ETA :: show Estimated Time of Arrival of copied files.     <br \/>\/LOG:file :: output status to LOG file (overwrite existing log).     <br \/>\/LOG+:file :: output status to LOG file (append to existing log).     <br \/>\/TEE :: output to console window, as well as the log file.     <br \/>\/NJH :: No Job Header.     <br \/>\/NJS :: No Job Summary. <\/p>\n<p><strong>:: Job Options :      <br \/><\/strong>\/JOB:jobname :: take parameters from the named JOB file.     <br \/>\/SAVE:jobname :: SAVE parameters to the named job file     <br \/>\/QUIT :: QUIT after processing command line (to view parameters).     <br \/>\/NOSD :: NO Source Directory is specified.     <br \/>\/NODD :: NO Destination Directory is specified.     <br \/>\/IF :: Include the following Files.<\/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":[12,11,14,69,13],"tags":[],"class_list":["post-816","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\/816","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=816"}],"version-history":[{"count":1,"href":"https:\/\/www.radians.com.ar\/blog\/index.php?rest_route=\/wp\/v2\/posts\/816\/revisions"}],"predecessor-version":[{"id":846,"href":"https:\/\/www.radians.com.ar\/blog\/index.php?rest_route=\/wp\/v2\/posts\/816\/revisions\/846"}],"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=816"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.radians.com.ar\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=816"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.radians.com.ar\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=816"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}