Viewing 19 posts - 1 through 19 (of 19 total)
  • Robocopy
  • zzjabzz
    Free Member

    I want to create a mirror image of my mp3 directory on an external drive. I use windows 10. If I run robocopy /MIR <source> <destination> I believe that will do what I want. However, when I add new directories to the source and run the same robocopy command again in a couple of weeks, will it just add the new or changed files to the destination or will it go through the whole 100% copying process again?
    I’m aware that this method will also purge the destination of any deleted directories on the source, which is fine.
    So do I need to add any more switches to the command for adding new files only, or just the original command?
    TIA

    twicewithchips
    Free Member

    More switches, /s at the least I think, unless /mir does that I can’t remember.
    RT(F)M 😉

    CraigW
    Free Member

    That command should work. It will compare the filenames and timestamps, if they match, then those files will be skipped.

    Note there can be issues if copying to different filesystems, as the timestamps are inaccurate, so all files are detected as newer. So you can use Robocopy with the /FFT option, which fixes this.

    The /MIR option includes subdirectories anyway, so you don’t need /E.

    zzjabzz
    Free Member

    That’s good news, thanks. Same file system so no problem there.

    holst
    Free Member

    Have you looked at using SyncToy, it’s much easier to set up.

    orangespyderman
    Full Member

    Have you looked at using SyncToy, it’s much easier to set up.

    Anther vote for SyncToy if you’re trying to keep two folders regularly synced rather than a one off copy.

    CraigW
    Free Member

    Robocopy is easy enough, once you figure out what you want to do.
    You can save the command as a batch file, then run it whenever you like. Or add it to scheduled tasks, to run automatically.

    zzjabzz
    Free Member

    Thanks again. The idea was to try not to use third party software if Windows can already do it. I’ve got Karen’s Replicator which is probably similar to the software mentioned above, but you know, if it’s already there… It will be in a bat file but not scheduled. I’ll decide when it needs running. Cheers all.

    twisty
    Full Member

    Iirc /mir is the same as /e /purge. So you do not need /s but you could do /s /purge if you want to ignore empty directories.

    chojin
    Free Member

    A word of caution, /MIR works both ways so make sure you don’t mix up your source and destination!

    Better off not using MIR altogether in my opinion.

    holst
    Free Member

    The idea was to try not to use third party software if Windows can already do it.

    SyncToy is a Microsoft tool, available for free download from their website.

    zzjabzz
    Free Member

    Noted chojin, thanks.

    SyncToy – I can see what it does, it’s just the 1Kb .bat file compared to a 4Mb GUI seems a much more preferable option to me. I’m no purist (I’m on Windows 10 after all), it’s just the way I want to do things and when I show the kids what it does, they can learn a bit more along with me…

    zzjabzz
    Free Member

    And no one’s made a Robocop joke yet, disappointed.

    jbproductions
    Free Member

    I use Robocopy to do the same but I’m very wary of using /MIR. What happens if you have a corruption in the target destination? Will it then delete the corresponding source files?

    I think I just use /S and the retry options /R:3 /W:3.

    So each time I run the command via a batch file, it checks the whole directory structure and only copies new files in the source.

    Also you can play with multi-threaded copies to see if that speeds up copying at all. It may not.

    /MT[:n] :: Do multi-threaded copies with n threads (default 8).

    slimjim78
    Free Member

    Just remember, if you do use Robocopy then you’ll only have 10 seconds to comply

    jbproductions
    Free Member

    Just remember, if you do use Robocopy then you’ll only have 10 seconds to comply

    Here’s the switches for that 😉

    /R:1
    /W:10

    jbproductions
    Free Member

    Here we go…this is what I use. I guess I don’t need the /E

    ROBOCOPY D:\Documents x:\Backup /S /E /R:3 /W:3 /MT:20

    jimmy
    Full Member

    You’re all pretty smart, huh. Think you could outsmart a bullet?

    slimjim78
    Free Member

    The OP made a mistake, now it’s time to erase that mistake

Viewing 19 posts - 1 through 19 (of 19 total)

The topic ‘Robocopy’ is closed to new replies.