Results 1 to 6 of 6
  1. #1
    WS Lounge VIP access-mdb's Avatar
    Join Date
    Dec 2009
    Location
    Oxfordshire, UK
    Posts
    1,725
    Thanks
    147
    Thanked 156 Times in 149 Posts

    Robocopy question about logs

    I'm using Robocopy and looking at the logs I was wondering what the significance was of certain fields.

    It's the first one on each line. There are a number of states:
    *EXTRA File
    modified
    Newer
    New File
    same

    What's the significance of these? The first two seem obvious, but many files have modified when they haven't been touched.

    I Googled but couldn't find a definition.

  2. The Following User Says Thank You to access-mdb For This Useful Post:

    Fascist Nation (2016-01-23)

  3. #2
    WS Lounge VIP
    Join Date
    Dec 2009
    Location
    Earth
    Posts
    8,191
    Thanks
    48
    Thanked 985 Times in 915 Posts
    Newer would be a newer file with the same name, newer creation date, not modified date.
    New file is one that doesn't exist in the target.
    Same means a match.

    I always limit the log contents to only show errors and a summary (NDL, NFL). The summary shows things have happened, errors need fixing.

    cheers, Paul

  4. The Following User Says Thank You to Paul T For This Useful Post:

    RetiredGeek (2016-01-22)

  5. #3
    Super Moderator BATcher's Avatar
    Join Date
    Feb 2008
    Location
    A cultural area in SW England
    Posts
    3,417
    Thanks
    33
    Thanked 195 Times in 175 Posts
    The following is from the XP010 (yes, XP!) documentation for Robocopy...

    For each directory processed RoboCopy constructs a list of files matching the Include Filespecs, in both the source and destination directories. The program then cross-references these lists, seeing which files exist where, comparing file times and sizes where possible, and places each selected file in one of the following classes:

    Code:
    File        Exists In   Exists In        Source/Dest     Source/Dest   Source/Dest
    Class       Source      Destination      File Times      File Sizes    Attributes
    =========== =========== ================ =============== ============= ============
    Lonely      Yes         No               n/a             n/a           n/a
    Tweaked     Yes         Yes              Equal           Equal         Different
    Same        Yes         Yes              Equal           Equal         Equal
    Changed     Yes         Yes              Equal           Different     n/a
    Newer       Yes         Yes              Source > Dest   n/a           n/a
    Older       Yes         Yes              Source < Dest   n/a           n/a
    Extra       No          Yes              n/a             n/a           n/a
    Mismatched  Yes (file)  Yes (directory)  n/a             n/a           n/a
    By default, Lonely files (and directories) are always copied, unless /XL switch is used. Changed, Newer and Older files will be considered to be candidates for copying (subject to further filtering described below), Same files will be skipped (not copied), and Extra and Mismatched files (and directories) will simply be reported in the output log.

    Normally, Tweaked files are neither identified nor copied they are usually identified as Same files by default. Only when switch /IT is used will the distinction between Same and Tweaked files be made, and only then will Tweaked files be copied.

    Use the following switches to override this default behaviour:

    Code:
    Switch   Function
    ======== =====================
    /XL      eXclude Lonely files and directories.
    /IT      Include Tweaked files.
    /IS      Include Same files.
    /XC      eXclude Changed files.
    /XN      eXclude Newer files.
    /XO      eXclude Older files.
    Use the following switch to suppress the reporting and processing of Extra files:
    Code:
    /XX      eXclude eXtra files
    BATcher

    Time prevents everything happening all at once...

  6. #4
    Super Moderator BATcher's Avatar
    Join Date
    Feb 2008
    Location
    A cultural area in SW England
    Posts
    3,417
    Thanks
    33
    Thanked 195 Times in 175 Posts
    In fact, let me attach the Robocopy XP010 documentation PDF!
    Attached Files Attached Files
    BATcher

    Time prevents everything happening all at once...

  7. The Following 2 Users Say Thank You to BATcher For This Useful Post:

    access-mdb (2016-01-22),RetiredGeek (2016-01-22)

  8. #5
    WS Lounge VIP access-mdb's Avatar
    Join Date
    Dec 2009
    Location
    Oxfordshire, UK
    Posts
    1,725
    Thanks
    147
    Thanked 156 Times in 149 Posts
    Thanks BATcher, saved so that I can go through it carefully.

    I asked as it's not obvious what the difference is between *EXTRA File and New File (if any). And why files which haven't been touched are 'modified'.

  9. #6
    WS Lounge VIP access-mdb's Avatar
    Join Date
    Dec 2009
    Location
    Oxfordshire, UK
    Posts
    1,725
    Thanks
    147
    Thanked 156 Times in 149 Posts
    I wish I had this documentation earlier, it's all getting clearer now. There's even a difference between Newer and newer (note capital).

    Thanks again.

    I will shortly mark this thread closed (just to give anybody the opportunity to add a quick comment).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •