Page 1 of 1
Changing timestamp of files should set archive attribute
Posted: 14 Dec 2022 11:29
by prino
When changing the timestamp of files, the archive attribute bit should be set to make sure that those files are backed-up (again) so that file and backup have consistent timestamps.
Re: Changing timestamp of files should set archive attribute
Posted: 15 Dec 2022 07:55
by admin
Really? I thought the archive bit is a bit outdated (excuse the pun).
Re: Changing timestamp of files should set archive attribute
Posted: 15 Dec 2022 10:42
by Horst
Its still used by some backup tools and possible user scripts.
So I think the poster is right, the archive bit should be set when changing time stamps.
Re: Changing timestamp of files should set archive attribute
Posted: 15 Dec 2022 10:47
by admin
Okay, it seems to make sense and no harm.
Re: Changing timestamp of files should set archive attribute
Posted: 12 Mar 2023 15:30
by prino
I just found that changing the timestamp on a R-O file also resets the R-O attribute. Oops, that should not be happening!
Re: Changing timestamp of files should set archive attribute
Posted: 12 Mar 2023 17:08
by admin
Of course! A logic flaw when I added setting the archive attribute. Fix comes.