Windows 10: Robocopy options

Discus and support Robocopy options in Windows 10 Backup and Restore to solve the problem; I have a batch file that contains this line Code: robocopy "E:\ame\Documents\_kunddata" "\\DESKTOP-2S2F2DJ\Backup\Kunddata" /MIR /W:1 /R:1... Discussion in 'Windows 10 Backup and Restore' started by anders59, May 24, 2020.

  1. anders59 Win User

    Robocopy options


    I have a batch file that contains this line
    Code:
    In the log file I get this
    Code:
    So there are som extra options in the log file. /DCOPY and /COPY are the default values so I get them. Also /PURGE might make sense...

    But why is there both /S and /E ?
    Is they the opposite?

    :)
     
    anders59, May 24, 2020
    #1

  2. Robocopy invalid parameter 3

    Not sure what I'm doing wrong here but this script keeps telling me that a parameter is invalid and I can't figure out why.. I moved the parameters to a variable because somebody suggested that might work but I also tried

    Robocopy "$StartLocation" "$EndLocation" /SEC /E /XX /MINLAD:1 /MOV /A-:SH /XF "*FULL*.bak"

    Keep getting this error

    Started : Thursday, December 13, 2018 5:11:51 PM

    Source - L:\FakeLocation

    Dest - \\ThisIsA\FakeLocation\ButThereAreNo\Spaces

    NULL

    Files :

    Options : /DCOPYRobocopy options :DA /COPYRobocopy options :DAT /R:1000000 /W:30

    NULL

    ------------------------------------------------------------------------------

    NULL

    ERROR : Invalid Parameter #3 : " /SEC"

    Below is my shoddy code

    PARAM($StartLocation="L:\FakeLocation",

    $EndLocation="\\ThisIsA\FakeLocation\ButThereAreNo\Spaces",

    $Job='1')

    $Options = "/SEC /E /XX /MINLAD:1 /MOV /A-:SH /XF ""*FULL*.bak"""

    $Options2 = "/SEC /E /XX /MINLAD:7 /MOV /A-:SH"

    $Options3 = "/SEC /E /XX /MINLAD:1 /MOV /A-:SH"

    IF ($JOB='1')

    {

    Robocopy "$StartLocation" "$EndLocation" $Options

    Robocopy "$StartLocation" "$EndLocation" $Options2

    }

    IF ($JOB='2')

    {

    Robocopy "$StartLocation" "$EndLocation" $Options3

    }
     
    Michael Lanahan, May 24, 2020
    #2
  3. Robocopy infinite recursion

    Hi,

    Thank you for writing to Microsoft Community Forums.

    Try running the /zb command from the article
    Robocopy
    for the Access Denied error and check if this helps.

    If you are still facing any issues, then I would suggest you to post your query in

    IT Pro TechNet forums
    .
     
    Shafeeq_Khan, May 24, 2020
    #3
  4. Robocopy options

    Robocopy command is not recognized

    Well, that's good news! It tells you there is nothing wrong with robocopy itself. Now please let's have a screenshot of this sequnce:

    1. Press the Windows key + R
    2. Type cmd.exe and press Enter.

      You should get a black frame. The prompt should read C:\Windows\System32
    3. Type echo %path% and press Enter.
     
    Frederik Long, May 24, 2020
    #4
Thema:

Robocopy options

Loading...
  1. Robocopy options - Similar Threads - Robocopy options

  2. robocopy fails at the folder My Music

    in Windows 10 Gaming
    robocopy fails at the folder My Music: I’m using robocopy to create a mirror backup folder. It doesn’t finish and the reason seems strange. I’m working from folder C:\Users\belli\Documents. This is separate from the OneDrive\Documents, as I’m not using OneDrive that folder still exists and some programs use it....
  3. robocopy fails at the folder My Music

    in Windows 10 Software and Apps
    robocopy fails at the folder My Music: I’m using robocopy to create a mirror backup folder. It doesn’t finish and the reason seems strange. I’m working from folder C:\Users\belli\Documents. This is separate from the OneDrive\Documents, as I’m not using OneDrive that folder still exists and some programs use it....
  4. Robocopy renames the target directory to the same directory once done running

    in Windows 10 Gaming
    Robocopy renames the target directory to the same directory once done running: Hi,Trying to copy all folders to another directory on same disk and partitionrobocopy c:\Users\bob\Document c\users\Bob\1-BobBackup /sthis runs when complete, the 1-BobBackup is renamed "Document" resulting in 2 "Document " folders making it confusing which is source and...
  5. Robocopy renames the target directory to the same directory once done running

    in Windows 10 Software and Apps
    Robocopy renames the target directory to the same directory once done running: Hi,Trying to copy all folders to another directory on same disk and partitionrobocopy c:\Users\bob\Document c\users\Bob\1-BobBackup /sthis runs when complete, the 1-BobBackup is renamed "Document" resulting in 2 "Document " folders making it confusing which is source and...
  6. Robocopy copies unwanted folders

    in Windows 10 Gaming
    Robocopy copies unwanted folders: So, I'm working on a script that, among other things, backs up Documents folder to USB drive. The issue that I'm having is the same as this guy...
  7. Robocopy copies unwanted folders

    in Windows 10 Software and Apps
    Robocopy copies unwanted folders: So, I'm working on a script that, among other things, backs up Documents folder to USB drive. The issue that I'm having is the same as this guy...
  8. How do I use robocopy to do a task like the File Explorer "Move" i.e. keep metadata, delete...

    in Windows 10 Network and Sharing
    How do I use robocopy to do a task like the File Explorer "Move" i.e. keep metadata, delete...: This is nearly directly copied from a post made on r/WindowsHelp on December 23, 2024, which in turn was a follow-up on a post made to r/DataHoarder on November 16, 2024.For context, I am currently running Windows 10 Pro, version 22H2, build 19045.5247, experience Windows...
  9. How do I use robocopy to do a task like the File Explorer "Move" i.e. keep metadata, delete...

    in Windows 10 Gaming
    How do I use robocopy to do a task like the File Explorer "Move" i.e. keep metadata, delete...: This is nearly directly copied from a post made on r/WindowsHelp on December 23, 2024, which in turn was a follow-up on a post made to r/DataHoarder on November 16, 2024.For context, I am currently running Windows 10 Pro, version 22H2, build 19045.5247, experience Windows...
  10. How do I use robocopy to do a task like the File Explorer "Move" i.e. keep metadata, delete...

    in Windows 10 Software and Apps
    How do I use robocopy to do a task like the File Explorer "Move" i.e. keep metadata, delete...: This is nearly directly copied from a post made on r/WindowsHelp on December 23, 2024, which in turn was a follow-up on a post made to r/DataHoarder on November 16, 2024.For context, I am currently running Windows 10 Pro, version 22H2, build 19045.5247, experience Windows...