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

12 Aug 2012   #110
jkitc

Windows 7 Home Premium x64
 
 

Here is a photo from Snipping tool. It's just a continual loop, and does nothing.

ROBOCOPY - Create Backup Script-robocopy.png




My System SpecsSystem Spec
12 Aug 2012   #111
Golden

Microsoft Community Contributor Award Recipient

Windows 7 Ult. x64
 
 

Quote   Quote: Originally Posted by jkitc View Post
No Go!
Youre going to have to give more detail than that. Post some screen capture images of the problem.

Regards,
Golden
My System SpecsSystem Spec
13 Aug 2012   #112
sramb1

windows 7 32
 
 
Need backup script

Hello Golden,

I want to backup my PC D-drive 5 times in a week to my network drive. Could you please write a script to achieve this. Below is my requirement.

--Everyday full backup
-- Want to retain the last 5 days backups
-- script should create directory everyday and take the backup into that directory
-- It should delete the directory, if the days exceeds more than 5.
-- It should have only last five days backup

Please help me.

Many thanks in advance.

Thanks & Best Regards,
SRAMB1
My System SpecsSystem Spec
20 Aug 2012   #113
callbrady

Windows 7 Ultimate 32bit
 
 

Golden, it works great if I double click on the .bat file, but when I try using task scheduler it is failing. I've looked through the tutorial you referenced, but still no go.

Systems are on domain, bat file has been place on C drive and on user's Desktop, but am currently getting 0x3 as last run result when testing (although the script does appear to run).

robocopy c:\users\username \\servername\share\username /e np /tee /mt /XA:SH /XF Recycler* /r:3 /w:10 /XJ /XD AppData

Any thoughts? Today we are supposed to "go live" with this, and I just found the bug.

Quote   Quote: Originally Posted by Golden View Post
Hi,

Mmm, I don't know to be perferfectly honest.......have you tried excluding that using wildcards?

XF = exclude file

/XF RECYCLER* or whatever the recycler is called?

Regards,
Golden
My System SpecsSystem Spec
.


20 Aug 2012   #114
Golden

Microsoft Community Contributor Award Recipient

Windows 7 Ult. x64
 
 

Quote   Quote: Originally Posted by jkitc View Post
Here is a photo from Snipping tool. It's just a continual loop, and does nothing.

Attachment 226533
Hi,

I'm not sure whats going on there, but the one thing I noticed is that you seem to be running the .BAT from within a Robocopy Batch directory on your desktop. Try placing the .BAT file directly on your desktop, and then running it from there.

Regards,
Golden
My System SpecsSystem Spec
20 Aug 2012   #115
Golden

Microsoft Community Contributor Award Recipient

Windows 7 Ult. x64
 
 

Quote   Quote: Originally Posted by callbrady View Post
Golden, it works great if I double click on the .bat file, but when I try using task scheduler it is failing. I've looked through the tutorial you referenced, but still no go.

Systems are on domain, bat file has been place on C drive and on user's Desktop, but am currently getting 0x3 as last run result when testing (although the script does appear to run).

robocopy c:\users\username \\servername\share\username /e np /tee /mt /XA:SH /XF Recycler* /r:3 /w:10 /XJ /XD AppData

Any thoughts? Today we are supposed to "go live" with this, and I just found the bug.
Hi,

I'm not really sure what the solution is. I'll see if I can get more help with this.

Regards,
Golden
My System SpecsSystem Spec
22 Aug 2012   #116
Klossi

W764Bit, and a buttload of servers
 
 

Had same problem, cause i used notepad, and then renamed to *.bat for my script.

did a new blank page in notepadd++, copied the script into that, saved it as a bat file in notepadd++ and viola, script was working as intended.

Now i don't get this continous rolling in a prompt anymore


actually, just made a account here, JUST to tell you that
My System SpecsSystem Spec
23 Aug 2012   #117
RandyD123

Win7 x64
 
 

Is this just the same as Microsoft's "SyncToy2"??
My System SpecsSystem Spec
23 Aug 2012   #118
Golden

Microsoft Community Contributor Award Recipient

Windows 7 Ult. x64
 
 

Quote   Quote: Originally Posted by RandyD123 View Post
Is this just the same as Microsoft's "SyncToy2"??
Hi,

Yes, essentially it is - SyncToy is robocopy with a GUI.

Regards,
Golden
My System SpecsSystem Spec
31 Aug 2012   #119
NailIT

Windows 7 Professional x64
 
 
Excellent Tutorial

Thanks a lot, Golden! Very helpful.
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 01:06.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App