Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: ROBOCOPY - Create Backup Script

10 Oct 2012   #130
Golden
Microsoft MVP

Windows 7 Ult. x64
 
 

Hi,

This might be a permissions issue. Please try the following:

Code:
robocopy "C:\Users\VocWorks User" E:\Backup /MIR /E /COPYALL
I just noticed that /mir also implies /e - I think that must have changed recently, or perhaps I missed it, so yes, you could disregard the /e, but only if you are using /mir.

Regards,
Golden


My System SpecsSystem Spec
10 Oct 2012   #131
champ488

Windows 7 64bit
 
 

robocopy "C:\Users\VocWorks User" E:\Backup /MIR /E /COPYALL
I did the about as suggest. I even took the /E out. I am getting an error. Screen shot attached.


Attached Thumbnails
-error.jpg  
My System SpecsSystem Spec
10 Oct 2012   #132
motherpeople

Windows 7 x64
 
 

I support the mention about permissions. Windows 7 is quite problematic if you don't know how to handle it properly.

So try to run robocopy as an administrator (even when you already are). If you're using the cmd.exe to run robocopy do this: Start / type: cmd in the search field / right click on the cmd icon / click on 'run as administrator'

Then you paste or type: robocopy "C:\Users\VocWorks User" E:\Backup /MIR

Alternatively, you can exclude problematic files adding this switch at the end: /xf "C:\Users\VocWorks User/NTUSER.DAT".
My System SpecsSystem Spec
15 Oct 2012   #133
epoc

Windows 7 Home Premium 32 bit
 
 
Don't understand why, but it works.....

I'm sort of new to RoboCopy and I have become very impressed with what it can do. I played around with the following problem until I got it resolved, but I don't understand why it works.

This is part of the directory structure on my 'c' drive:
Name:  directory.jpg
Views: 2139
Size:  25.9 KB

If I use this command:
robocopy "c:\users\Barry\My Documents" "g:\users\Barry\My Documents" /e /mt:4 /tee /w:2 /xj

It appears that the command works just fine, BUT the 'My Documents' folder doesn't get created on the 'g' drive.

However, if I use this command:
robocopy "c:\users\Barry\Documents" "g:\users\Barry\Documents" /e /mt:4 /tee /w:2 /xj

The 'My Documents' folder DOES get created and the folders/files get created/copied to 'g'.

Why does this work???


My System SpecsSystem Spec
.

15 Oct 2012   #134
epoc

Windows 7 Home Premium 32 bit
 
 

This is what I see when I open Explorer:
Name:  directory1.jpg
Views: 1889
Size:  23.0 KB

Thanks for any knowledge sharing......


My System SpecsSystem Spec
15 Oct 2012   #135
Golden
Microsoft MVP

Windows 7 Ult. x64
 
 

Hi Epoc,

My Documents is one of those mystical junction points in Windows Explorer - its real name isn't 'My Documents', its actually just 'Documents', which is why your second version works just fine.

See below (notice the name in the bar at the top of the image).


Attached Thumbnails
-capture.png  
My System SpecsSystem Spec
15 Oct 2012   #136
epoc

Windows 7 Home Premium 32 bit
 
 

Windows, what would we do without it.......

Thank you for the reply. (Your tutorial is actually what got me started using RoboCopy)
My System SpecsSystem Spec
16 Oct 2012   #137
Golden
Microsoft MVP

Windows 7 Ult. x64
 
 

My System SpecsSystem Spec
16 Oct 2012   #138
boohbah

Microsoft Windows 7 Home Premium 64-bit 7600
 
 

thought i would point out colin that the font color in the first two steps of the tutorial makes it unviewable with the sf black theme, try it and see what i mean.
i can see it by highlighting the area
My System SpecsSystem Spec
16 Oct 2012   #139
Golden
Microsoft MVP

Windows 7 Ult. x64
 
 

Cheers Julian - I never noticed that before, but looking closer Step 1 and 2 are black, and the rest is the default? colour, whatever it is - it doesn't show in the box. I'll find out what it is and fix it.

EDIT: Fixed!
My System SpecsSystem Spec
Comment

 ROBOCOPY - Create Backup Script




Tutorial Tools




Similar help and support threads
Windows 7 Tutorial Category
robocopy script is not working through Scheduler
Dear All, My batch file of robocopy is working fine. But when I tried to run it through task scheduler, none of the files transfer to the target location. @echo off echo +-----------------------------------------+ echo Database Export Utility for server ...
General Discussion
Robocopy Backup - ERROR 5 (0x00000005)
Hi, I'm wondering if anyone might be able to shed some light on why I am getting the following such errors when running a robocopy batch file (as administrator) which cause the backup script to stall (- albeit temporarily): I am using the following backup command: robocopy "%srcPath%\My...
Backup and Restore
How 2 create a script/BAT or something that changes my desktop image?
Okay so I just got this program called Transparent Screen Lock and you can run files when the program starts/locks and closes/unlocks. What I would like to do is create a script or something that changes my desktop background to an image when I click "lock" and another script to change the desktop...
Customization
Robocopy backup for personal folders
I have created a batch file for copying my Documents folder to an external hard drive: The log file shows that it is backing up C:\users\USERNAME\documents\My Music and C:\users\USERNAME\documents\My Pictures. That's fine, because I want those backed up anyway, but when I go to...
Backup and Restore
I Need Help To Create REG. Script With Admin. Priv. For Reg. Editor?
Hello. I have a technical question/issue I wish to ask. I hope someone can help me. I am looking help for someone to modify or rewrite for me a simple system registry script for my context menu that allows or forces to "run as administrator" privileges automatically when I click on the...
Customization
Anyone use robocopy to backup?
Evening all, Just curious to know if anyone uses the built in utility to backup software on your machine, im trying to backup my itunes folder to an external HD but having a few issues to get this to work properly! I also use sync toy for backing up but just really want to know what everyone...
Backup and Restore


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 21:01.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App