• Copying Files without overwriting

    Author
    Topic
    #466760

    I am trying to restore data to my daughter’s hard drive.

    I have rebuilt everything and received several gigabytes of data on DVDs from Mozy. I am trying to copy only those files from the Mozy DVDs which are not already on the hard drive.

    Here is my problem:

    [indent]I had planned to use XCopy or RoboCopy to copy all the files since her last backup which was in June of last year. Unfortunately, the Mozy files all have a date of February of this year, so this would overwrite everything on her hard drive. This is not the desired result.[/indent]
    XCopy will prompt me whether or not to overwrite the files and I can just respond “N” 30,000 times but that is not the desired result either. Perhaps somthing holding down the “N” key is the answer. I could not find an option in RoboCopy to prompt me before overwriting.

    I found commands to not copy based on dates but I could not find a switch in RoboCopy or XCopy to copy a file only if it does not exist on the destination drive. That is what I think I am looking for.

    Since these are coming from a DVD, I want to use RoboCopy or XCopy since that automatically removes the read-only attribute.

    What I think I need is an option to either say “No to All” when prompted by XCopy or an option in RoboCopy to automatically exclude any files which are already on the hard drive.

    I believe RoboCopy has a default of only copying a file if the source and destinateion have different time stamps or different file sizes. It would also be fine if I could just change that to only overwrite if the files have different file sizes.

    Does anyone have any ideas that might help me with this. It might be staring me in the face in the RoboCopy help, but I just don’t see it.

    Viewing 2 reply threads
    Author
    Replies
    • #1209917

      I have not tried this, but maybe it works:
      In Robocopy, if you use /XN and /XO to exclude both newer and older files, then it should not copy any existing files.
      At least that would be logical …

      Jock

      • #1209932

        I have not tried this, but maybe it works:
        In Robocopy, if you use /XN and /XO to exclude both newer and older files, then it should not copy any existing files.
        At least that would be logical …

        Jock

        Gee, thank you.

        Until you put those both in the same sentence I had trouble reading the descriptions. For some stupid reason, XN and XO looked like they did the same thing, excluding files unless the source was newer.

        I appreciate the reading lesson.
        🙂

    • #1209919

      Robocopy allows you to copy by attribute.
      Failing that it’s time for Servant Salamander.

      cheers, Paul

    • #1210021

      As another solution, Karen’s Replicator would do the job quite simply. I find this program very useful when re-installing windows.

      Chris

    Viewing 2 reply threads
    Reply To: Copying Files without overwriting

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: