Some robocopy questions...

Discussion in 'Windows Server' started by Bobson, Aug 4, 2009.

  1. Bobson

    Bobson Guest

    hi everyone,

    I have use Robocopy a few times...but would like to ask for smoething I
    never tried before...

    On the source server, I have a folder called Users, and there are all users'
    folders within, including userA, B, C...and so on. Now I would like to copy
    the subfolders of the Users folder to a new server. The new server has Users
    folder already. Also, in the Users folder, I have userA and UserB already.
    What syntax do I use to copy the content of the Users folder from the source
    to the new server without overwrite those folders with the same names
    existing already?

    Also, do you think the GUI Robocopy is the same as the command one?

    Thank you for your help!


    Please bear with my poor English !

    Thank you for your help!!

    Bobson, Aug 4, 2009
    1. Advertisements

  2. You could use the /xo /xn switches to avoid overwriting existing files. And
    no, the GUI version of robocopy is not the same as the console version: One
    has a GUI interface, the other a command line interface.
    Pegasus [MVP], Aug 4, 2009
    1. Advertisements

  3. Bobson

    Bobson Guest

    Hi Pegasus,

    Thank you very much again for your frequent help. So should I apply XO or
    XN? What are the differences of them? I repeat the syntax descriptions
    several times but I can't still figure out which one I should use...

    Thank you!

    Bobson, Aug 5, 2009
  4. /xo = exclude older files
    /xn = exclude newer files
    /xo /xn: Exclude both older and newer files. A quick test will show you that
    this is equivalent as not overwriting any files that pre-exist. When I do
    not understand some instructions then I try to test them for myself - it
    usually clarifies the issue.
    Pegasus [MVP], Aug 5, 2009
  5. Bobson

    Bobson Guest

    Hi Pegasus,

    Thank you for your response again! Yep in fact, after reposting here, I did
    a test right away... and I found out it would not overwrite my files if I
    applied both. As I did not copy the timestamp on the duplicate one, it won't
    overwrite the new one with /xn.

    No matter what thank you very much again. Stay in touch :)

    Bobson, Aug 5, 2009
    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.