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

16 Dec 2013   #210
vipul19

64 bit win 7 home premium
 
 

It worked - sorry, I didn't see the "start" on your line.

Thanks!


My System SpecsSystem Spec
.
16 Dec 2013   #211
Golden
Microsoft MVP

Windows 7 Ult. x64
 
 

Glad to be of service
My System SpecsSystem Spec
13 Jan 2014   #212
BLAU0179

W7 64bit
 
 
Robocopy Script

Bill thank for the tutorial. I have a little problem and I would have some suggestion from you. I have done it and it works correctly if I run it in a manual mode. If I automate it as Task Scheduler it does not work. I receive a message (see attached) that the option instruction /log:backup_log.txt is not a valid parameter and the task does not start.
The script should copy from a network drive <P> to a <E> storage drive.
This the script I have done :
robocopy "P:\Archivio Comune" "E:\Backups Archivio Comune" /e /mir /np /z /tee /log:backup_log.txt
I have also modified the option instruction as /log:backup.txt but the result is the same.
Do you have any idea why the it works in manual mode and not as automated Task Scheduled ?
Thank in advance for you help and suggestion.


Attached Images
ROBOCOPY - Create Backup Script-error-message.jpg 
My System SpecsSystem Spec
13 Jan 2014   #213
Golden
Microsoft MVP

Windows 7 Ult. x64
 
 

Have you tried running the task with highest privileges?

ROBOCOPY - Create Backup Script-1.png


My System SpecsSystem Spec
.

13 Jan 2014   #214
BLAU0179

W7 64bit
 
 
Robocopy

Thank for the immediate replay and thank for the suggestion. Yes with the highest privileges the task works,no error ,it is createed the backup file but does not create the log.txt file in the same folder where there is the script. It may be in an other folder ? Thank a lot.
My System SpecsSystem Spec
13 Jan 2014   #215
Golden
Microsoft MVP

Windows 7 Ult. x64
 
 

Check the desktop? Is it there?
My System SpecsSystem Spec
13 Jan 2014   #216
BLAU0179

W7 64bit
 
 
Robocopy

Non in the Desktop. When I run it manually the log.txt is created into the same folder of the script. I did a search in the C:\ but nowhere there is the log.tpx
My System SpecsSystem Spec
13 Jan 2014   #217
Golden
Microsoft MVP

Windows 7 Ult. x64
 
 

Try this:

robocopy "P:\Archivio Comune" "E:\Backups Archivio Comune" /e /mir /np /z /tee /log: "P:\Archivio Comune\backup_log.txt"

The logfile should now be saved to "P:\Archivio Comune
My System SpecsSystem Spec
13 Jan 2014   #218
BLAU0179

W7 64bit
 
 
Robocpy

No way. With the last script you sent also in manual mode the backup.txt is not written. In both mode , manual and Task Schedule, the backup file is written but not the log.txt file.
My System SpecsSystem Spec
13 Jan 2014   #219
Golden
Microsoft MVP

Windows 7 Ult. x64
 
 

Try removing space between log: "P
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 08:23.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App