I am doing a migration of users home folders onto a new file server on a new domain.
In the root of student home folders there is a folder called Application Data and the administrator is locked out of this.
Is there a way i can set robocopy to skip copying this folder please?
Easiest way is to set retry to 1 and wait to 1 second with /R:1 /W:1
I normally just use the /r:0 and /w:0 options - so if it fails on a file it just moves on. I figure that if it fails to copy something on the first attempt, the chances are it isn't going to get anywhere by keep trying so it it might as well just move on.
Thats what i have done for a temp fix but its slowing down the process.
What does the /secfix switch actually do please?
I believe /secfix just copies security information - for example if you copy all the files first, then decide you did want to copy security permissions, you can use that to just copy security settings and not all the files again.
Actually, /XD "Application Data" should work.
That works. If i was to exclude 2 folders would i do this
/XD "Application Data" "Folder1"
/XD "Application Data" /XD "Folder1"
/XD "Application Data" "Folder1" seems to work
What TeeJay said is correct, but you only need to use quotes for folders which contain spaces in their names. I usually tell RoboCopy to skip temporary and junk files too...
/XF *.tmp .ds_store thumbs.db ~$*.*