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


18 Sep 2011   #129
Golden

Microsoft Community Contributor Award Recipient

Windows 7 Ult. x64 Windows 8.1 x64
 
 
ROBOCOPY - Create Backup Script

How to Create a Backup Script using ROBOCOPY Command


...

My System SpecsSystem Spec
10 Oct 2012   #130
Golden

Microsoft Community Contributor Award Recipient

Windows 7 Ult. x64 Windows 8.1 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
ROBOCOPY - Create Backup Script-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: 683
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: 454
Size:  23.0 KB

Thanks for any knowledge sharing......


My System SpecsSystem Spec
15 Oct 2012   #135
Golden

Microsoft Community Contributor Award Recipient

Windows 7 Ult. x64 Windows 8.1 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
ROBOCOPY - Create Backup Script-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 Community Contributor Award Recipient

Windows 7 Ult. x64 Windows 8.1 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 Community Contributor Award Recipient

Windows 7 Ult. x64 Windows 8.1 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 for2: ROBOCOPY - Create Backup Script
Windows 7 Tutorial Category
Robocopy Backup - ERROR 5 (0x00000005) Backup and Restore
How to create batch script to lock workstation then log off. General Discussion
Robocopy backup for personal folders Backup and Restore
I Need Help To Create REG. Script With Admin. Priv. For Reg. Editor? Customization
Robocopy backup - file permissions General Discussion
Anyone use robocopy to backup? Backup and Restore
Create ErrorHandler.cmd script file General Discussion

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 01:30 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33