Solved

How to backup my files using xcopy or robocopy on Windows 7 and have it actually work

Posted on 2011-09-06
7
627 Views
Last Modified: 2012-08-13
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
and
copy c:\users\jason\My Pictures\*.* to F:\backups\jason\My Pictures
and
copy c:\users\Marcia\My Documents\*.* to F:\backups\Marcia\My Documents
and
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!

Any ideas?
0
Comment
Question by:jkurant
7 Comments
 
LVL 2

Expert Comment

by:ajjmunoz
ID: 36493096
1.  go to c:\windows\system32
2. right click on cmd.exe and click on [run as a different user]
3. use the local administrator username and password
4. once the command prompt opens up, type the following command:

***make sure you use " quotation marks " for the source and the destination!!!
***if the below doesn't work, then proceed to 5.

xcopy /CHEZK "c:\users\jason\My Documents\" "F:\backups\jason\My Documents"

***keep the command prompt open!

5. if the above doesn't work, then continue with the below steps....
6. type the following command

f: [ENTER]

7. after F: and then hitting enter, you should see the command prompt change to f:\
8. now type the following command

xcopy /CHEZK "c:\users\jason\My Documents\" "F:\backups\jason\My Documents"

9. continue the same for the rest of the copy jobs....
0
 
LVL 2

Accepted Solution

by:
ajjmunoz earned 500 total points
ID: 36493102
one last thing......I don't understand how you have "My Documents" if you are running windows 7?!....


if you are trying to copy the files from a different computer, you may have to go to the security properties and do 2 things....

1. make yourself the owner of the files

2. remove security permissions and grant yourself full control

microsoft - take ownership of a file

windows 7 - permissions and ownership
0
 
LVL 76

Expert Comment

by:arnold
ID: 36493166
robocopy "c:\user\jason"  "f:\backups\jason\  /E /copy:dato  /xd "Application Data" /XD "Local"

Use the /L flag to see what would be copied and use the /XD to exclude directories you do not want /XF to exclude files.
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 95

Expert Comment

by:Lee W, MVP
ID: 36493203
The problem is that Windows 7 enforces security on user folders - you (jason) don't have access to "Marcia's" folder.

I would suggest you look into other forms of backup or make scripts for each user.  You can also adjust permissions on the other user's folders if you're an admin.

I've started using IDrive for backup - 5 GB free for an online backup service.
0
 

Author Closing Comment

by:jkurant
ID: 36503027
Your comment about "My Documents" vs "Documents" got me thinking. I believe the My Documents folder that I saw on my customer's machine was actually a shortcut that was created either by Windows or possibly some utility that someone used to copy my customer's data from one machine to another. I think I was trying to copy the shortcut. I'll find out once I get back to my customer's computer, but with your help I should be able to take ownership of the files, fix any permissions problems and get the backup to work properly.
Thanks!
0
 

Author Comment

by:jkurant
ID: 36503039
@ajjmunoz:
Your comment about "My Documents" vs "Documents" got me thinking. I believe the My Documents folder that I saw on my customer's machine was actually a shortcut that was created either by Windows or possibly some utility that someone used to copy my customer's data from one machine to another. I think I was trying to copy the shortcut. I'll find out once I get back to my customer's computer, but with your help I should be able to take ownership of the files, fix any permissions problems and get the backup to work properly.
Thanks!

(I wrote this twice so people would know who i was responding to)
0
 
LVL 2

Expert Comment

by:ajjmunoz
ID: 36507215
Thanks for the acknowledgement and points. Take care.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

A quick step-by-step overview of installing and configuring Carbonite Server Backup.
This article is an update and follow-up of my previous article:   Storage 101: common concepts in the IT enterprise storage This time, I expand on more frequently used storage concepts.
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now