What is the best command for mirroring files from e drive to d drive? Both external.

B&J Ranganathan 0 Reputation points
2024-11-04T16:17:42.6933333+00:00

The command I used for Robocopy is:

c:\windows\system32>robocopy e:\ d:\ /MIR /FFT /R:3 /Z /NP /NDL /SA:SH /NS /NFL /NC

This was working in Windows 10 but does not work with Windows 11.

Any help would be appreciated. Thanks.

Windows for business | Windows Client for IT Pros | User experience | Other
{count} votes

2 answers

Sort by: Most helpful
  1. Michael Taylor 60,331 Reputation points
    2024-11-04T16:49:52.5666667+00:00

    Robocopy should work fine in Win11. Can you share what error(s) you're getting? I wonder if your external drives are network shares and you're being bit by the Win11 behavior that it doesn't auto-reconnect network drives anymore until you use them the first time. This can cause problems for code that checks the status of drives before doing anything.

    If you are literally replicating the entire drive and this is a Server OS then you might consider using Distributed File System Replication or similar instead. Other alternative backup apps may work as well, depending on the frequency you need this to run.


  2. Yanhong Liu 14,200 Reputation points Microsoft External Staff
    2024-11-05T06:47:13.4733333+00:00

    Hello

    Thank you for posting in Q&A forum.

    Let's try a slightly different approach to mirror the files from your E drive to your D drive:

    please open cmd as administrator to run below command to see if it works, sometimes task scheduler doesn't work because need system right. so we need do know which part have issue

    c:\windows\system32>robocopy e:\ d:\ /MIR /FFT /R:3 /Z /NP /NDL /SA:SH /NS /NFL /NC /MT:32

    Adding the /MT:32 switch enables multi-threaded copying, which can help improve the speed and efficiency of the file transfer process.

    If this command still doesn't work, you might want to try using a different tool like AOMEI Backupper or FreeFileSync, which are known for their robust file synchronization capabilities.

    Best regards

    Yanhong

    =====================================

    If the answer is helpful, please click "Accept answer" and upvote it

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.