none
Robocopy keep copying "Modified" files

    Question

  • New version of Robocopy (in Windows server 2012) output shows it repeatedly (every run) keep copying files of type "Modified".

    There are no obvious changes in source are destination files.

    Can we know how what are these "modified" files mean and how to avoid copying again and again?

    Friday, May 18, 2018 5:49 AM

All replies

  • Hi!

    By default RoboCopy will only copy changed files - not newer so if there is no other parameters, it will copy old files to overwrite newer ones in destination folder.

    Below are some parameters:

           /XC :: eXclude Changed files.
           /XN :: eXclude Newer files.
           /XO :: eXclude Older files.
           /XX :: eXclude eXtra files and directories.
           /XL :: eXclude Lonely files and directories.
           /IS :: Include Same files.
           /IT :: Include Tweaked files.

        /MAX:n :: MAXimum file size - exclude files bigger than n bytes.
        /MIN:n :: MINimum file size - exclude files smaller than n bytes.

     /MAXAGE:n :: MAXimum file AGE - exclude files older than n days/date.
     /MINAGE:n :: MINimum file AGE - exclude files newer than n days/date.
     /MAXLAD:n :: MAXimum Last Access Date - exclude files unused since n.
     /MINLAD:n :: MINimum Last Access Date - exclude files used since n.
                  (If n < 1900 then n = n days, else n = YYYYMMDD date).

    For more information about robocopy:
    https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy

    Kind regards,
    Leon


    Blog: https://thesystemcenterblog.com  LinkedIn:   

    Friday, May 18, 2018 6:01 AM
  • Hi,

    May I ask you robocopy between two servers? If the two server have the different file systems, files are still re-copied, even though nothing has changed. You can use /fft switch

    https://social.technet.microsoft.com/Forums/scriptcenter/en-US/3123bc0c-ee2e-4692-b346-769803651520/robocopy-want-it-to-only-copy-new-and-updated-files?forum=ITCG

    Best Regards,

    Mary


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    19 hours 8 minutes ago
    Moderator