Windows 8 and 8.1 Forums

Robocopy /MIR

  1. #1


    Posts : 301
    Windows 8 Pro

    Robocopy /MIR


    Does Robocopy /MIR copy all files or just the ones that are added and those that are changed? I don't want to start this if it is going to take hours and hours. thanks...

      My System SpecsSystem Spec

  2. #2


    Just the changes.
      My System SpecsSystem Spec

  3. #3


    Posts : 301
    Windows 8 Pro


    thanks pparks1. I have just started "Robocopy F: \\INSPIRONBACKUP\F_Insp1900 /E /log:F:\Robocopy.log" after some testing and it seems to work. Is this ok?
      My System SpecsSystem Spec

  4. #4


    Posts : 301
    Windows 8 Pro


    Just ran into a problem: It tried to copy the Recycle bin and hung, is there a way to bypass an error like this?
      My System SpecsSystem Spec

  5. #5


    What was the source and the destination? You can use xd switch to exclude directories.
      My System SpecsSystem Spec

  6. #6


    Posts : 301
    Windows 8 Pro


    Got it: Robocopy F: \\INSPIRONBACKUP\F_Insp1900 /E /XD dirs $RECYCLE.BIN /log:F:\Robocopy.log
      My System SpecsSystem Spec

  7. #7


    Posts : 301
    Windows 8 Pro


    Quote Originally Posted by pparks1 View Post
    What was the source and the destination? You can use xd switch to exclude directories.
    Is there a way to exclude all hidden files?
      My System SpecsSystem Spec

  8. #8


    Posts : 301
    Windows 8 Pro


    After looking through the many options, this is what I ended up with:
    Code:
    @echo off 
    title A better way
    color 0a
    echo.
    echo 1.Backup to spare PC.
    echo 2.Back up to spare HDD "N:".
    echo 3.Exit
    echo.
    
    set /p a=
    IF %a%==1 Robocopy F: \\INSPIRONBACKUP\F_Insp1900 /E /XA:SH /R:2 /W:1 /TEE /LOG:F:\Robocopy.log
    IF %a%==2 Robocopy F: N: /E /XA:SH /R:2 /W:1 /TEE /log:F:\Robocopy.log
    IF %a%==3 Echo Did nothing - Exited...
    Pause
    
    Echo off
    Rem Copy only changed or new files.
    Rem /E = copy subdirectories, including empty one.
    Rem XA = exclude files with attributes.
    Rem R = number of retries.
    Rem W = wait time between retries.
    Rem /TEE = output to console window
    Rem /LOG= write log file
      My System SpecsSystem Spec

Robocopy /MIR
Related Threads
"C:\Users\username\AppData\Roaming\App Launcher Gadget" F:\Backup\Common\App_Launcher\AppLauncherSettings /i I want to copy "App Launcher Gadget" folder to "AppLauncherSettings" folder. I have tried several ways and only get the files copied or invalid directory.
Robocopy and same directory in General Support
Hi With the Robocopy command of Windows 8.x, how do I do a copy of a file (renaming it) in the same directory of the source file? Thanks Bye
Hi Using Robocopy, I should copy the files of a directories structure with all their ACL and their attributes except the attributes of reading in another structure. How should I do this? Thanks Bye
Basically I would like to copy from my Skydrive to copy to my NAS once a day everyday. I know some of the basics but need help with specifics like copy to folder and making sure the newest file exists as the saved copy. Here we go! Robocopy C:\Users\Clive\SkyDrive\Documents B:\ / Thanks...
Eight Forums Android App Eight Forums IOS App Follow us on Facebook