Bug when copying users/ directory to another hard drive?
Hey everyone, I've just upgraded to Win7 RTM, and tried to take a backup of the Users/* folders before doing this. When installing, I wiped the drive and did a clean install, but when trying to access the backed up profile data, it seems to have disappeared, apart from the AppData/ folder in my main profile. I've already tried changing ownership, but is there any known bugs with copying these folders to another drive? Ta, Jamie
August 15th, 2009 9:32pm

The Users folder has junctions, or symbolic links, in it. "All Users" is actually "C:\ProgramData" and "Default User" ends up the same as "C:\Users\Default". This is further complicated by attributes, ownership and permissions of the folders.These reparse points don't copy very well. Depending on how the copying is done, you can end up with a copy of the link, pointing back to the folder on C:, or an empty folder, or a copy of the target folder on C:.When you try to copy the Users folder back, if you ended up with empty folders instead of links, the copy will fail trying to overwrite the links with folders. If you actually ended up with links, pointing back to the folder on C:, the copy will fail because the copy is recursive (points to itself).Then there is the problem with the links in each user's folder. Some of these are recursive in themselves. This has been a bug since Vista. Just for fun do dir /s "C:\Users\<user>\AppData\Local\Application Data" in a command prompt, where <user> is your username. You can hit CTL-C any time to stop it.For best results, when copying C:\Users, I would use a command line such as xcopy C:\Users D:\Users /c/e/h/i/k/o/y. Then I would do dir /al /s C:\Users to find all the links under C:\Users. After that, I would delete all directories on the target that are the same path as those links, by entering rd /s /q <dirpath>.
Free Windows Admin Tool Kit Click here and download it now
August 15th, 2009 11:37pm

I use easy transfer as a backup utility becouse it's more like ntbackup. It saves more settings and you can select exactly what and which profile and where to save it.
August 16th, 2009 10:00am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics