From LedHed's Wiki
Jump to: navigation, search
(Created page with '== Examples == robocopy \\SERVER\D$\data D:\data /S /E /COPYALL /R:0 /W:0 /XD "\\SERVER\D$\data\Junk Folder" \\SERVER\D$\data\tmp Copy from \\SERVER\D$\data to local D:\data ...')
 
Line 13: Line 13:
 
/XD = Exclude Directories (Space separated list, make sure to properly quote paths that have spaces in them)
 
/XD = Exclude Directories (Space separated list, make sure to properly quote paths that have spaces in them)
  
Be careful of creating a [[Junction Loop]]
+
 
 +
Be careful not to create a [[Robocopy Junction Loop|Junction Loop]]
 +
 
 +
 
  
 
== References ==
 
== References ==

Revision as of 03:49, 26 July 2012

Examples

robocopy \\SERVER\D$\data D:\data /S /E /COPYALL /R:0 /W:0 /XD "\\SERVER\D$\data\Junk Folder" \\SERVER\D$\data\tmp

Copy from \\SERVER\D$\data to local D:\data

/S = Copy Subdirectories /E =Include Empty Subdirectories /COPYALL = Copy all file attributes /R:0 = Retry zero times on copy failures /W:0 = Wait 0 seconds between retries /XD = Exclude Directories (Space separated list, make sure to properly quote paths that have spaces in them)


Be careful not to create a Junction Loop


References

http://technet.microsoft.com/en-us/library/cc733145%28v=ws.10%29.aspx