Guest User

Untitled

a guest
Dec 25th, 2015
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.97 KB | None | 0 0
  1. ROBOCOPY "drive:" "destination:" *.* /E /V /NP /R:5 /LOG+:log.txt /TS /FP
  2.  
  3. /E :: copy subdirectories, including Empty ones.
  4. /V :: produce Verbose output, showing skipped files
  5. /NP :: No Progress - don't display % copied.
  6. /R:n :: number of Retries on failed copies: default 1 million.
  7. /LOG+:file :: output status to LOG file (append to existing log).
  8. /TS :: include source file Time Stamps in the output.
  9. /FP :: include Full Pathname of files in the output.
  10.  
  11. C:UsersPJ>robocopy /?
  12.  
  13. -------------------------------------------------------------------------------
  14. ROBOCOPY :: Robust File Copy for Windows
  15.  
  16. -------------------------------------------------------------------------------
  17.  
  18. Started : Fri Dec 18 02:29:48 2015
  19.  
  20. Usage :: ROBOCOPY source destination [file [file]...] [options]
  21.  
  22. source :: Source Directory (drive:path or \serversharepath).
  23. destination :: Destination Dir (drive:path or \serversharepath).
  24. file :: File(s) to copy (names/wildcards: default is "*.*").
  25.  
  26. ::
  27. :: Copy options :
  28. ::
  29. /S :: copy Subdirectories, but not empty ones.
  30. /E :: copy subdirectories, including Empty ones.
  31. /LEV:n :: only copy the top n LEVels of the source directory tree.
  32.  
  33. /Z :: copy files in restartable mode.
  34. /B :: copy files in Backup mode.
  35. /ZB :: use restartable mode; if access denied use Backup mode.
  36. /EFSRAW :: copy all encrypted files in EFS RAW mode.
  37.  
  38. /COPY:copyflag[s] :: what to COPY for files (default is /COPY:DAT).
  39. (copyflags : D=Data, A=Attributes, T=Timestamps).
  40. (S=Security=NTFS ACLs, O=Owner info, U=aUditing info).
  41.  
  42. /DCOPY:T :: COPY Directory Timestamps.
  43.  
  44. /SEC :: copy files with SECurity (equivalent to /COPY:DATS).
  45. /COPYALL :: COPY ALL file info (equivalent to /COPY:DATSOU).
  46. /NOCOPY :: COPY NO file info (useful with /PURGE).
  47.  
  48. /SECFIX :: FIX file SECurity on all files, even skipped files.
  49. /TIMFIX :: FIX file TIMes on all files, even skipped files.
  50.  
  51. /PURGE :: delete dest files/dirs that no longer exist in source.
  52. /MIR :: MIRror a directory tree (equivalent to /E plus /PURGE).
  53.  
  54. /MOV :: MOVe files (delete from source after copying).
  55. /MOVE :: MOVE files AND dirs (delete from source after copying).
  56.  
  57. /A+:[RASHCNET] :: add the given Attributes to copied files.
  58. /A-:[RASHCNET] :: remove the given Attributes from copied files.
  59.  
  60. /CREATE :: CREATE directory tree and zero-length files only.
  61. /FAT :: create destination files using 8.3 FAT file names only.
  62. /256 :: turn off very long path (> 256 characters) support.
  63.  
  64. /MON:n :: MONitor source; run again when more than n changes seen.
  65. /MOT:m :: MOnitor source; run again in m minutes Time, if changed.
  66.  
  67. /RH:hhmm-hhmm :: Run Hours - times when new copies may be started.
  68. /PF :: check run hours on a Per File (not per pass) basis.
  69.  
  70. /IPG:n :: Inter-Packet Gap (ms), to free bandwidth on slow lines.
  71.  
  72. /SL:: copy symbolic links versus the target.
  73. ::
  74. :: File Selection Options :
  75. ::
  76. /A :: copy only files with the Archive attribute set.
  77. /M :: copy only files with the Archive attribute and reset it.
  78. /IA:[RASHCNETO] :: Include only files with any of the given Attributes set.
  79. /XA:[RASHCNETO] :: eXclude files with any of the given Attributes set.
  80.  
  81. /XF file [file]... :: eXclude Files matching given names/paths/wildcards.
  82. /XD dirs [dirs]... :: eXclude Directories matching given names/paths.
  83.  
  84. /XC :: eXclude Changed files.
  85. /XN :: eXclude Newer files.
  86. /XO :: eXclude Older files.
  87. /XX :: eXclude eXtra files and directories.
  88. /XL :: eXclude Lonely files and directories.
  89. /IS :: Include Same files.
  90. /IT :: Include Tweaked files.
  91.  
  92. /MAX:n :: MAXimum file size - exclude files bigger than n bytes.
  93. /MIN:n :: MINimum file size - exclude files smaller than n bytes.
  94.  
  95. /MAXAGE:n :: MAXimum file AGE - exclude files older than n days/date.
  96. /MINAGE:n :: MINimum file AGE - exclude files newer than n days/date.
  97. /MAXLAD:n :: MAXimum Last Access Date - exclude files unused since n.
  98. /MINLAD:n :: MINimum Last Access Date - exclude files used since n.
  99. (If n < 1900 then n = n days, else n = YYYYMMDD date).
  100.  
  101. /XJ :: eXclude Junction points. (normally included by default).
  102.  
  103. /FFT :: assume FAT File Times (2-second granularity).
  104. /DST :: compensate for one-hour DST time differences.
  105.  
  106. /XJD :: eXclude Junction points for Directories.
  107. /XJF :: eXclude Junction points for Files.
  108.  
  109. ::
  110. :: Retry Options :
  111. ::
  112. /R:n :: number of Retries on failed copies: default 1 million.
  113. /W:n :: Wait time between retries: default is 30 seconds.
  114.  
  115. /REG :: Save /R:n and /W:n in the Registry as default settings.
  116.  
  117. /TBD :: wait for sharenames To Be Defined (retry error 67).
  118.  
  119. ::
  120. :: Logging Options :
  121. ::
  122. /L :: List only - don't copy, timestamp or delete any files.
  123. /X :: report all eXtra files, not just those selected.
  124. /V :: produce Verbose output, showing skipped files.
  125. /TS :: include source file Time Stamps in the output.
  126. /FP :: include Full Pathname of files in the output.
  127. /BYTES :: Print sizes as bytes.
  128.  
  129. /NS :: No Size - don't log file sizes.
  130. /NC :: No Class - don't log file classes.
  131. /NFL :: No File List - don't log file names.
  132. /NDL :: No Directory List - don't log directory names.
  133.  
  134. /NP :: No Progress - don't display % copied.
  135. /ETA :: show Estimated Time of Arrival of copied files.
  136.  
  137. /LOG:file :: output status to LOG file (overwrite existing log).
  138. /LOG+:file :: output status to LOG file (append to existing log).
  139.  
  140. /UNILOG:file :: output status to LOG file as UNICODE (overwrite existing
  141. log).
  142. /UNILOG+:file :: output status to LOG file as UNICODE (append to existing
  143. log).
  144.  
  145. /TEE :: output to console window, as well as the log file.
  146.  
  147. /NJH :: No Job Header.
  148. /NJS :: No Job Summary.
  149.  
  150. /UNICODE :: output status as UNICODE.
  151.  
  152. ::
  153. :: Job Options :
  154. ::
  155. /JOB:jobname :: take parameters from the named JOB file.
  156. /SAVE:jobname :: SAVE parameters to the named job file
  157. /QUIT :: QUIT after processing command line (to view parameters).
  158.  
  159. /NOSD :: NO Source Directory is specified.
  160. /NODD :: NO Destination Directory is specified.
  161. /IF :: Include the following Files.
Advertisement
Add Comment
Please, Sign In to add comment