How to backup my files using xcopy or robocopy on Windows 7 and have it actually work
Posted on 2011-09-06
What is Microsoft doing to us? I have the simplest possible requirement. I want to
copy c:\users\jason\My Documents\*.* to F:\backups\jason\My Documents
copy c:\users\jason\My Pictures\*.* to F:\backups\jason\My Pictures
copy c:\users\Marcia\My Documents\*.* to F:\backups\Marcia\My Documents
copy c:\users\Marcia\My Pictures\*.* to F:\backups\Marcia\My Pictures
So, I am just copying jason's and Marcia's files to a removable drive. SIMPLE! You used to be able to simply use XCOPY <Source> <dest> /s /e
But now I get all these ridiculous access denied errors. So, I set up a user called Backup Processor, and made it an administrator. I created a batch file that did XCOPYs and then I tried ROBOCOPY to copy the four folders as shown above. First it created hidden folders and so I created the folders before ROBOCOPY. But now I am getting access denied on the removable drive! ROBOCOPY copied a bunch of files to my F: drive and I can drill down to F:\backups\jason but when I double-click on My Documents I get Access Denied.
All users on the system are administrators. I have logged in as each of the three users on the system (Jason, Marcia and Backup Processor) and accessed the My Documents and My Pictures folders of the other two users, requesting access because of the prompt that asks if the user should get access. I thought maybe with that access ROBOCOPY would copy the files so I can actually access them.
Does anyone know the trick to making this work? I am baffled and very seriously thinking about going to Apple computer. I have been a microsoft developer for many years and I have just had it with Microsoft. They are making the simplest thing impossible!