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 MVP

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 MVP

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 MVP

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 MVP

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
Reply

 ROBOCOPY - Create Backup Script




Thread Tools




Similar help and support threads
Thread Forum
Robocopy Script For Incremental, Differential and Full Backup
Dears, Anobody can help me to have a backup script that will help for backup requirement, Please see the details below My Source Directory is "D:\Source" My Destinationa Directory is "\\Server\Destination" I need to meet the following (1) Need to take fullbackup on every Friday ? For this...
General Discussion
my backup script using robocopy
robocopy /S /E /MOV %USERPROFILE%\Documents\ G:\backup\Documents\ robocopy /S /E /MOV %USERPROFILE%\Pictures\ G:\backup\Pictures\ robocopy /S /E /MOV %USERPROFILE%\Downloads\ G:\backup\DownloadS\ robocopy /S /E /MOV %USERPROFILE%\Favorites\ G:\backup\Favorites\ robocopy /S /E /MOV...
Backup and Restore
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 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
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 22:52.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App