xcopy /d date-switch not detected?

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
 
B

Bob Harris

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.
 
Joined
Jul 9, 2007
Messages
1
Reaction score
0
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Xcopy help 7
Xcopy 9
xcopy exclude switch 2
XCOPY FILE TO COPY MY DOCUMENTS FOLDER 3
Using XCOPY to copy only changed files 15
xcopy 10
xcopy with /D switch to non-windows filesystems 2
Need help on Bat file 9

Top