On Tue, 10 May 2022 13:17:12 -0500, Glenn Wilcock wrote:
>Yes, the access and modification times are preserved. But, the change time is
>updated because the metadata is changed due to update the last backup
>timestamp. But, as indicated, if the wildcarding selects only those files to
>be archived, the backup and delete can be done with a single command.
>
Hmmm. The OP's intent was to:
o Backup all files in the directory
o Then use skulker to delete inactive files.
That fails because backup alters the accessed timestamp.
There may be an inevitable timing window. In the simplest case:
stat( file );
if ( inactive ) unlink( file );
the hazard is that the file may be altered between stat() and unlink().
Can skulker avoid this?
--
gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN