ROBOCOPY - Create Backup Script

Page 22 of 32 FirstFirst ... 122021222324 ... LastLast

  1. Posts : 3
    64 bit win 7 home premium
       #210

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

    Thanks!
      My Computer


  2. Posts : 19,383
    Windows 10 Pro x64 ; Xubuntu x64
    Thread Starter
       #211

    Glad to be of service
      My Computer


  3. Posts : 7
    W7 64bit
       #212

    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 Thumbnails Attached Thumbnails ROBOCOPY - Create Backup Script-error-message.jpg  
      My Computer


  4. Posts : 19,383
    Windows 10 Pro x64 ; Xubuntu x64
    Thread Starter
       #213

    Have you tried running the task with highest privileges?

    ROBOCOPY - Create Backup Script-1.png
      My Computer


  5. Posts : 7
    W7 64bit
       #214

    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 Computer


  6. Posts : 19,383
    Windows 10 Pro x64 ; Xubuntu x64
    Thread Starter
       #215

    Check the desktop? Is it there?
      My Computer


  7. Posts : 7
    W7 64bit
       #216

    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 Computer


  8. Posts : 19,383
    Windows 10 Pro x64 ; Xubuntu x64
    Thread Starter
       #217

    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 Computer


  9. Posts : 7
    W7 64bit
       #218

    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 Computer


  10. Posts : 19,383
    Windows 10 Pro x64 ; Xubuntu x64
    Thread Starter
       #219

    Try removing space between log: "P
      My Computer


 
Page 22 of 32 FirstFirst ... 122021222324 ... LastLast

  Related Discussions
Our Sites
Site Links
About 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:14.
Find Us