PDA

View Full Version : [REQ] Move Script, Keeping Original Timestamp


wooolF[RM]
01-01-2004, 11:00 PM
Mmkay... Fast explanation:
Reason : I got 250Gb extra HDD in my box, so I've decided to move movies from smaller HDD to that new HDD and games from anotner small HDD to HDD where movies were...

Problem : After moving all folders from one HDD to another HDD, datestamp is the same for all folders. Thus killing whole purpose of Wipe script (WarChive) as all folders have same date now.


More detailed explanaion :
Datestamp consist of 3 stamps - created, modified and last accessed. When moving folders to new hdd, all folders have same datestamp (and yes, same date for created, modified and last accessed). So when u next time run Wipe utility, it will just delete folders from A to Z cause all of them have same datestamp.

Interesting detail is, that files inside moved folders do have one of the datestamps (modified) right. But not the folders that those files are located inside of...

I have tried over 7 different programms that works with datestamp, even some sync-related proggies, after now 3 days I'm desperate...

I'm not a coder, nor a (i)TCL scripter, but I thought of some solution that will:
1) Check date of the moved folder
2) Write it to some variable
3) Move folder to new HDD
4) Read variable
5) Touch folder so the modified datestamp will be same as before moving...

I've talked to darkone about this problem some days ago and he said that it is possible to do even in TCL with "vfs flush"...

[ dark0n3 ] it's easier to just notify io through shared memory.. or via itcl
[ dark0n3 ] you could ie. create simple script that flushes cache zor all directories recursively
[ dark0n3 ] (in archive)Prolly d1 will look into it (as we've talked about it in PM) or prolly someone else have an idea how to fix my little problem...
I will apreciatte any help on given subject. Thank you.

fridge66
01-02-2004, 01:34 PM
I have also had this problem. When moving stuff around, Winblows mod's the dates.

I got around this myself by using WinRAR. Use no compression and add all the files you want to move to an archive.

Then when you decompress, WinRAR will use the same dates/times as the previous dirs.

I had a huge dox archive, and this was the only way I could get this to work right. Otherwise, all folders get the time/date they are moved.

Hope this helps...

-fridge66

wooolF[RM]
01-02-2004, 01:39 PM
O.O
I think I'll have lots of fun raring/moving/extracting 200Gb of movies and then games... geeez...

Thanks for the tip, I'll give it a try :)

fridge66
01-02-2004, 05:17 PM
Originally posted by wooolF[RM]
O.O
I think I'll have lots of fun raring/moving/extracting 200Gb of movies and then games... geeez...

Thanks for the tip, I'll give it a try :)

I never said it was fun! :p Its a crude but effective method. :D

-SP66

wooolF[RM]
01-02-2004, 07:28 PM
hrmpf... I've tried to archive 2 folders with latest WinRAR 3-4 different way and tried to unpack it 3-4 diferent ways... and still when I unpack, moved folders have today date's datestamp :(

could u by any chance paste your settings :o or maybe make some screenshots? :(

Best regards

JoeBAR
01-03-2004, 07:49 PM
Originally posted by wooolF[RM]
hrmpf... I've tried to archive 2 folders with latest WinRAR 3-4 different way and tried to unpack it 3-4 diferent ways... and still when I unpack, moved folders have today date's datestamp :(

could u by any chance paste your settings :o or maybe make some screenshots? :(

Best regards

rar x -tk blah.rar from command prompt ...

in pkzip v6.0, it's
pkzipc -extract -time=all blah.zip

Hope it helps...

wooolF[RM]
01-03-2004, 08:34 PM
Originally posted by JoeBAR
rar x -tk blah.rar from command prompt ...didn't worked...
second one worked, not from command prompt tho'... but from GUI... >_<

thnx for the tip... will take me some time to fix all that moving >_<