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

21 Nov 2012   #170
ITspecialist

Windows 7 Ultimate x64
 
 

That is what i did, dis not work


My System SpecsSystem Spec
.
21 Nov 2012   #171
Golden
Microsoft MVP

Windows 7 Ult. x64
 
 

Provide some more detail, perhaps the error message you get..............
My System SpecsSystem Spec
21 Nov 2012   #172
acornada

Windows 7 Home Premium SP-1, 64-bit
 
 

If in Vista or later, right-click the batch file and choose "Run as Administrator".
My System SpecsSystem Spec
23 Nov 2012   #173
rhopper

Windows 7 Ultimate x64
 
 

I have read the thread and haven't seen anyone else ask this. We are using Robocopy to back up and restore our users data in prep for either migration from Vista to Win 7 or lfe cycling old equipment.
Robocopy works great we just point the users to the batch file location and theyrun the back up. Later they run the restore again this works great.

Here's the problem, one user got a little nosey and figured out that they could look into the files that had been backed up from another user.

So how can the files be secured, but still accessible for the user who they belong to?
My System SpecsSystem Spec
.

26 Nov 2012   #174
acornada

Windows 7 Home Premium SP-1, 64-bit
 
 

As I see it, this isn't really a Robocopy issue. It's an issue that you're making your shares too broad, allowing everyone to read everyone else's folders.

Perhaps you could make the backup folders non-readable by standard users? Or, share each folder only to its user, so other users have no read rights.

You also have the ability, using Robocopy options, to preserve or eliminate file attributes such as ownership. If a user has no security rights to another user's files, he wouldn't be able to read them locally, though I'm uncertain if that changes over a network. As I say, limiting the network shares to each user's own folder may be the way to go.
My System SpecsSystem Spec
28 Nov 2012   #175
mfx

Windows 7 Ultimate x64
 
 

Thank you...giving this a run now.

Out of interest. I am rescuing data from a drive that is slowing down aka dieing. How does Robocopy identify this in regards to corrupt data. Does it skip over and move on, will it just simply hang and await a force closure or simply auto end the process?

I dont expect an issue as I believe the corrupt data area is actually in the repository recycle folder (hidden).

Thanks
My System SpecsSystem Spec
28 Nov 2012   #176
acornada

Windows 7 Home Premium SP-1, 64-bit
 
 

Robocopy works at file level, so if it cannot properly read a file I presume that particular one would be skipped and listed as failed.

Use Robocopy's logging options to create a log file. At the bottom you will see a column for "Failed, which will show how many files/folders failed to copy.
My System SpecsSystem Spec
28 Nov 2012   #177
Golden
Microsoft MVP

Windows 7 Ult. x64
 
 

There is a /R:n switch which determines the number of retries in the case of a copy failure. If you don't specify this switch, robiocopy uses a default of 1 million retries with 30 secs between retries.

I often use /R:3 - 3 retries with 30 secs between retries.
My System SpecsSystem Spec
28 Nov 2012   #178
acornada

Windows 7 Home Premium SP-1, 64-bit
 
 

If you're copying locally (e.g. second drive in another bay, or external USB/Firewire/eSATA drive) you might want to use something like /R:4 /W:2. That would retry each four times with a two-second interval. Robocopy's default of a 30-second interval is intended more for network access situations.
My System SpecsSystem Spec
10 Dec 2012   #179
KKP

Win7 32 Bit
 
 
Robocopy for Linked folders

Hi I want to use robocopy or xcopy to copy a HTM file with a linked folder. Its not copying the linked folder now. But when i manually copy either the HTM file or the folder, both of then get copied .
My System SpecsSystem Spec
Comment

 ROBOCOPY - Create Backup Script




Tutorial Tools Search this Tutorial
Search this Tutorial:

Advanced Search




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 07:21.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App