RoboCopy backup issues

Sheryl Heier 21 Reputation points
2022-06-03T14:51:41.69+00:00

I am trying to backup my desktop to my backup drive. I have a C drive and a D drive on my new laptop. I need to back up files from both. When I run my script that I modified from the old desktop that just had C drive I get an error on the D drive that I added. ERROR : Invalid Parameter #7 : "/Log:d:\data\jobs\desktop.log"
How do I get it to backup the D drive also?
My lines look like this.
robocopy D:\data P:\newdesktop\data . /R:1 /W:1 /MIR /Log:d:\data\jobs\data.log
My Jobs scripts live on my D drive in a folder called Jobs. I run the commands from the Command Prompt in the Jobs folder.

Thanks
Sheryl

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
8,175 questions
No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MotoX80 23,491 Reputation points
    2022-06-03T19:28:11.577+00:00

    Verify that the folder exists. I get that error when I point robocopy to a bad folder name. You should also get the "ERROR 3" message.

    C:\>robocopy c:\temp\test c:\temp\testpath /log:c:\temp\xxxxxxxxx\rc.log /mir /l
    
    2022/06/03 15:22:19 ERROR 3 (0x00000003) Opening Log File c:\temp\xxxxxxxxx\rc.log
    The system cannot find the path specified.
    
    -------------------------------------------------------------------------------
       ROBOCOPY     ::     Robust File Copy for Windows
    -------------------------------------------------------------------------------
    
      Started : Friday, June 3, 2022 3:22:19 PM
       Source - c:\temp\test\
         Dest - c:\temp\testpath\
    
        Files :
      Options : /DCOPY:DA /COPY:DAT /R:1000000 /W:30
    
    ------------------------------------------------------------------------------
    
    ERROR : Invalid Parameter #3 : "/log:c:\temp\xxxxxxxxx\rc.log"