Copying only newer files with Robocopy

Discussion in 'Windows Server' started by Tom Reis, Dec 17, 2007.

  1. Tom Reis

    Tom Reis Guest

    We have a Novell server that we are migrating to aWindows 2003 server. We
    have already ran Robocopy about 1 month to copy all the data for testing. We
    have all the rights setup for the new Windows 2003 server and want to
    preserve them. What we are hoping to do is to run Robocopy to copy over only
    the files that have changed on the Novell server to the Windows 2003 server.
    What would be the command for doing this?
     
    Tom Reis, Dec 17, 2007
    #1
    1. Advertisements

  2. Tom Reis

    Nick Payne Guest

    robocopy source dest /MIR
     
    Nick Payne, Dec 17, 2007
    #2
    1. Advertisements

  3. No; that'd be a two way thing (mirroring source and destination) and can be
    very dangerous!
     
    Lanwench [MVP - Exchange], Dec 18, 2007
    #3
  4. By default that's precisely what it will do. You don't need to do anything
    special.

    Here's my standard robocopy syntax:

    robocopy <source> <destination> /e /r:1 /w:1

    you could also use /sec to preserve security.
     
    Lanwench [MVP - Exchange], Dec 18, 2007
    #4
  5. Tom Reis

    Nick Payne Guest

    No, it wouldn't. It changes the destination to mirror the source. It doesn't
    do the reverse. We run multiple robocopy scripts on a nightly basis that use
    the parameters I have shown below and have never had the source altered by
    robocopy.

    "Lanwench [MVP - Exchange]"
     
    Nick Payne, Dec 18, 2007
    #5
  6. What I mean is, if you've mucked with stuff in the destination as you
    might've "for testing" in this scenario, or if your destination is
    incomplete, you will end up with two sets of incomplete or bad data. The
    source can *absolutely* be altered if there's anything amiss with the
    destination data.. I use /mir only very carefully.
     
    Lanwench [MVP - Exchange], Dec 19, 2007
    #6
  7. Tom Reis

    Nick Payne Guest

    Nonsense. What /MIR does is delete dest files/dirs that no longer exist in
    source. The source isn't touched. Five minutes with Robocopy and a couple of
    trivial directory structures will show you this.

    "Lanwench [MVP - Exchange]"
     
    Nick Payne, Dec 19, 2007
    #7
  8. My apologies - you're correct. I've evidently been misreading the help files
    on that one. This hat is delicious, by the way.
     
    Lanwench [MVP - Exchange], Dec 19, 2007
    #8
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.