xcopy /d date-switch not detected?

  • Thread starter Thread starter yacrumb
  • Start date Start date
Y

yacrumb

Hello all,

I am trying to setup a backup-script with xcopy like this:

xcopy C:\projects Z:\backup\projecs /D /E /I /Y

But all files are copied each time it is run. Since /D switch is
given without date then only newer files should be copied, right? What
am I missing?

Thanks in advance!

/Rasmus
 
Normally /D (without a date) copies only newer files.

But, it determines what is newer from the time/date stamp on each file.

If the time/date stamp is changed, such as during a switch to/from daylight
saving time, then I have seen cases in which all files appear to be new and
are copied. For this reason I have turned off the automatic adjustment for
daylight saving time on the XP clock's time-zone tab.

I have also seen one case in which backing up to a network drive had a
similar problem, even though both PCs were nominally in the same time zone,
with the same options.
 
My dest-drive is a LaCie mini, so the second case you describe looks like mine. Perhaps xcopy cannot compare dates correctly over network?

Any alternatives? xxcopy?

Thanks,
Rasmus
 
Back
Top