COPY /u (?)

Dec 26, 2009
16
2
Uranus
#1
So I have this batch file that runs once a day and just copies everything from drive F: to drive H: like this:

copy /su F:\*.* H:\

I've always understood the u parameter to mean only copy those files that have been 'updated' and it uses the file's time/date to determine if a file is 'newer'. Right?

Lately, I've been noticing that when the batch file runs, it is copying a lot of files that I know haven't been modified and haven't even been accessed in a long time. At first I thought maybe it's a bug in TCC (I always install the latest version as soon as you release them). But then I noticed that almost all of the files being unnecessarily copied are .zip files.

My anti-virus program has a setting "scan archived files" so I disabled that and I'll see what happens. Is it possible that the AV program is doing something when it scans .zip files that causes TCC to think that the file has been changed?
 
Dec 26, 2009
16
2
Uranus
#4
Drive F: is 6TB and Drive H: is 8TB, but File Systems are the same on both drives. NTFS/GPT.

It doesn't happen every time, and it's not all files, mostly just .zip files. That's why I thought of the anti-virus program, since it was set to scan archived files and only runs a scan a couple of times per week.

Weird.
 
Dec 26, 2009
16
2
Uranus
#5
It doesn't happen every time, and it's not all files, mostly just .zip files. That's why I thought of the anti-virus program, since it was set to scan archived files and only runs a scan a couple of times per week.
Things just got really weird. After some testing, I have determined the problem, but it doesn't make sense and doesn't even seem like it should be possible.

(1) Run batch file and the only files copied are those that have been modified since last run. Exactly as expected.

(2) Boot from a USB thumbdrive containing Acronis True Image and create an image of my drive C: and save the image to a directory on drive G:

(3) Run batch file again, and dozens of .zip files on drives E: and F: are copied, even though they haven't been modified and haven't even been accessed in several months.

So, in conclusion, something has changed in the latest version of TCC or Acronis, or both. When Acronis creates an image of C: it somehow does something that modifies all my .zip files, on drives E: and F:, in a way that makes TCC think they have been modified and need to be copied to the backup drive.

WAIT . . . WHAT??!!
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
3,724
47
Albuquerque, NM
prospero.unm.edu
#6
Is is possible that Acronis is touching your .ZIP files for some reason?

You can view full time stamps, down to the millisecond, with something like:
Code:
alias ls=pdir /d /h /k /m /(dy-m-d  th:m:sd  zc  f)