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
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 17:40.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App