Hey folks, I recently got a sysadmin job, although the role wasn't advertised that way during the hiring process. Right now, I'm handling server transfers myself because I don't have the permissions for DFS replication, and my requests to get that sorted out have gone unanswered. My organization isn't willing to pay for alternatives either.
I'm trying to copy files from several drives (like E:, I:, J:, etc.), and I thought using Robocopy would be a straightforward solution. Here's the command I used: robocopy.exe "E:" "\new-server-name-here" /e /b /copyall /r:6 /w:5 /xd DfsrPrivate /tee /xo.
However, I've run into a weird issue where it keeps copying files from the $RECYCLE.BIN. This causes the files to become hidden and eventually disappear. To work around this, I've been copying directories one at a time, which retains the correct properties, but that was time-consuming during my last rush job. I have two more servers to migrate soon, and I'm hoping to get clarity on why this happened. I tried adding /xd $RECYCLE.BIN to the command, but it didn't fix the problem. Any insights would be really appreciated!
2 Answers
Honestly, you should clarify your job responsibilities if you're being assigned tasks outside of what you expected! As for Robocopy, it can be a bit tricky. Sometimes specific attributes can get included by default. Try using /xj to ignore junction points and see if that has any effect on your copying process.
You might want to double-check the permissions on the source drive. Sometimes, these permissions can mess with how files are copied. Also, have you thought about emptying the recycle bin before starting your transfers? That could help avoid pulling those hidden files over in the first place!
Haha yeah, I did empty it before the next migration! Still had those issues creeping up, though. I'm wondering if the permissions are giving me more trouble than I realized.