Re: With Robocopy can I just show files that were skipped due to being newer in the destination?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



On Dec 1, 3:02 am, "Pegasus \(MVP\)" <I....@xxxxxxxxxx> wrote:
"scottedwards2000" <scottedwards2...@xxxxxxxxx> wrote in message

news:292a7016-3095-4c2e-87c2-fcd9499bd617@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Robocopy is great at showing in the output files that were skipped
because they were "Extra" (present in the destination only) -- this
appears to be the default behavior -- but the only way I seem to be
able to show files that were skipped because they are NEWER in the
destination (they are skipped because I'm using the /xo flag) is the
use the /v (verbose) flag, which shows me ALL skipped files.  I don't
need to see all that because I'm using robocopy to move any new files
from a production directory to a backup directory, so of course there
will be many skipped files each time.  But, I really want to guard
against the posibility that someone will put a NEW file in the backup
directory by accident instead of the Production directory, so I need
some way to quickly see the files that were skipped due to my use of
the /xo flag.  Is there any way?  Do I have to combine robocopy with
some text processing commands?

Standard redirection stuff:
robocopy d:\temp d:\Mon *.txt /xo /v | find /i "older"

Thanks, Pegasus.
Great suggestion -- I wasn't even aware of that find command. The
only issue is that I wanted a concise log that only listed the
exceptions, and that /v (verbose) flag causes the log to be too long.
So, using your idea, I came up with a 2-3 step solution that allows me
to have the concise log and still check for "older" files. Let me
know if you can think of a better way (although I still think Robocopy
should have as an option to show these "older" files alongside the
"extra" ones without having to use the verbose option).

1. first I run this to actually do the backup and list any Extra
files:

robocopy E:\Workspace\CW2008\Production E:\Workspace\CW2008\Backup /r:
10 /xo /log+:RoboLog.txt /s /np

and look through the log for any "EXTRA" files or directories


2. then run this to check for files not backed-up due to the
destination copy being NEWER:

robocopy E:\Workspace\CW2008\Production E:\Workspace\CW2008\Backup /r:
10 /xo /s /np /v | find /i "older"


3. if you see any output from #2, use the log from this command to
find the specific location of the file(s):

robocopy E:\Workspace\CW2008\Production E:\Workspace\CW2008\Backup /r:
10 /xo /log:RoboLogVerbose.txt /s /np /v
.



Relevant Pages

  • Re: Robocopy sets attributes on destination folder to system and hidde
    ... I am trying to backup my D: drive where I store all of my data. ... To get around this problem I had to add attrib command at ... robocopy c: y:\images 1.wim ...
    (microsoft.public.windows.vista.general)
  • Re: replicating web files across IIS servers - Suggestions?
    ... or is it implied with the "/MIR" flag? ... have any accounts logged onto the console of the web servers. ... >> ROBOCOPY ... >> while to read through all of the command lines and options. ...
    (microsoft.public.inetserver.iis)
  • Re: Forgot to put old_rootvg to sleep before reboot - How to Wake
    ... Performs operations on existing alternate rootvg volume groups. ... To rename Alternate Disk Volume Group: ... The alt_rootvg_op command can be used to determine which disk is the ... flag) can be executed at this time. ...
    (comp.unix.aix)
  • Re: SIMPLE question [Was: Re: TIP #193: Simple Syntax Help System
    ... the "cmdline" package (command line arguments); ... For each boolean flag in the argument list, ... An argument declaration can specify this field if and only if its ... The system builds the command line options usage string. ...
    (comp.lang.tcl)
  • Re: who flags on OSR5
    ... Does anyone have any ideas why the 'who' command would fail to show a ... logged in user with command: ... Point being that it's no particular server login daemon doing something odd ... that flag. ...
    (comp.unix.sco.misc)