![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
|
Thread Tools | Rate Thread | Display Modes |
#16
|
|||
|
|||
![]()
Stan Brown on Mon, 11 Mar 2019 12:05:59
-0400 typed in alt.windows7.general the following: On Sun, 10 Mar 2019 22:23:09 -0700, pyotr filipivich wrote: Greetings I have a batch file using Robocopy which is only suppose to copy those files which are "newer" (I.e., modified) than the ones on the drive. Usually, there is no problem. But tonight, as I go to close up operations for the evening, it is copying far more files than before. all tagged "newer". Was there something magical about the shift to Daylight Savings time which makes a source drive file dated "Jan 2 2019 10:20 AM" to now be "newer" than the target drive file dated "Jan 2 2019 10:20 AM"? If you use the /TS option, robocopy will show you the timestamps of the source file. That it does. Even as it updates all the files on thumbdrive G: from Thumbdrive F: - both FAT32. Meh. Major issue is that, knowing this, I will know to sync thumbdrives earlier in the day, in order to not have to wait a half hour while it updates all the files. Now the question comes to me: what about the files on the external hard drives, which are NTFS? When the source file is on an NTFS drive, that will be in UTC, not your local time. (The timestamps displayed in File Explorer are converted from the NTFS native UTC to your time zone.) Sigh, one more place where the softies have gotten "clever." In the words of Zorba: Clever people and Grocers; they weigh everything. -- pyotr filipivich Next month's Panel: Graft - Boon or blessing? |
Ads |
#17
|
|||
|
|||
![]()
Stan Brown on Mon, 11 Mar 2019 12:05:59
-0400 typed in alt.windows7.general the following: Robocopy supposedly understands the semiannual daylight-time shift, and doesn't copy files in such cases, but I don't know how it knows. I just make sure that I have updated my USB stick the last thing before going to bed the night before the shift, so that even if the timestamps are wrong the file contents are correct. I think that is what I did Saturday night. Yep - even ran it a second time and all that had changed were the game files. Looping Owner at Documents C-loop ------------------------------------------------------------------------------- ROBOCOPY :: Robust File Copy for Windows ------------------------------------------------------------------------------- Started : Sat Mar 09 22:21:45 2019 Source : Q:\Documents\ Dest = R:\Documents\ Files : *.* Exc Files : desktop.ini Options : *.* /NDL /TEE /S /COPY ![]() ------------------------------------------------------------------------------ Newer 5851 Q:\Documents\My Games\Beyond the Sword\CivilizationIV.ini Newer 5851 Q:\Documents\My Games\Beyond the Sword\CivilizationIV.ini.bak Newer 306 Q:\Documents\My Games\Beyond the Sword\Logs\init.log Newer 7556 Q:\Documents\My Games\Beyond the Sword\Logs\PythonErr2.log Newer 0 Q:\Documents\My Games\Beyond the Sword\Logs\resmgr.log Newer 483 Q:\Documents\My Games\Beyond the Sword\Logs\xml.log [Snippage ] New File 698748 Q:\Documents\My Games\Beyond the Sword\Saves\single\Julius R302A AD-1714 ASB End.CivBeyondSwordSave Newer 1.1 m Q:\Documents\My Games\Beyond the Sword\Saves\WorldBuilder\WBQuickSave.CivBeyondSwor dWBSave ------------------------------------------------------------------------------ Total Copied Skipped Mismatch FAILED Extras Dirs : 680 650 30 0 0 0 Files : 128 13 115 0 0 31 Bytes : 83.86 m 4.91 m 78.94 m 0 0 9.74 m Times : 0:00:03 0:00:00 0:00:00 0:00:02 Speed : 5794775 Bytes/sec. Speed : 331.579 MegaBytes/min. Ended : Sat Mar 09 22:21:48 2019 This past weekend, after the time shift, out of hundreds of Eastern Standard Time files on my USB stick, robocooy wanted to copy exactly four. I don't know what made those different from the others, so I don't know if robocopy does basically compensate for DST and just failed with these four. There is an option in robocopy to copy the timestamp of a file without copying the file contents. You might want to use that, come November. As I have multiple backups, I can play with them till I either runout or it is November. -- pyotr filipivich Next month's Panel: Graft - Boon or blessing? |
|
Thread Tools | |
Display Modes | Rate This Thread |
|
|