Link to home
Start Free TrialLog in
Avatar of wcgplc
wcgplc

asked on

Set robocopy to exclude "System Volume Information" folder

I am running the following robocopy command but get lots of errors as it will not copy the system volume information folder.
How can I exclude the folder?

 
1. This is the command I am currently running:

robocopy \\10.16.0.5\d$ \\10.16.0.10\d$ /MIR /ZB /DCOPY:T /COPYALL /R:10 /W:1 /V /256 /TEE /XD \\10.16.0.5\d$\logs \\10.16.0.5\d$\RingCentral  /S /LOG:c:\Robocopy1.log

2. I tried to exclude the folder using the following but it didn't work

robocopy \\10.16.0.5\d$ \\10.16.0.10\d$ /MIR /ZB /DCOPY:T /COPYALL /R:10 /W:1 /V /256 /TEE /XD \\10.16.0.5\d$\logs \\10.16.0.5\d$\RingCentral  \\10.16.0.5\d$\systemvolumeinformation /S /LOG:c:\Robocopy1.log

3. I also tried the following but it failed also:

robocopy \\10.16.0.5\d$ \\10.16.0.10\d$ /MIR /ZB /DCOPY:T /COPYALL /R:10 /W:1 /V /256 /TEE /XD \\10.16.0.5\d$\logs \\10.16.0.5\d$\RingCentral  \\10.16.0.5\d$\system volume information /S /LOG:c:\Robocopy1.log

Please advise of how I need to modify the script to exclude the "system volume information" folder
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The only thing I would add to this would be increasing the thread count since that will improve the copy performance.

 /MT:20 would be good, so it'll copy 20 files at a time, considering most of those files will be relatively small that would be a good plan.

Regards

Alex
Avatar of wcgplc
wcgplc

ASKER

Just tested and that worked perfectly. Thanks so much.