Use a temporary holding directory. A cron job moves files older than N hours from the working directory into a “pending_zip” folder. A second script checks for file access times ( atime on Linux) – if accessed within the last 24 hours, the file is moved back to origin.
Not at all. Simple file system timestamps and access logs are sufficient for most implementations. mamatsumazip work