I'm running the following command which is supposed to find specific directories according to their Access-Time metadata detail however for some reason the find command changes the access time of these directories.
find /my/directory/ -mindepth 3 -maxdepth 3 -atime +2 -type d
Every time the above command runs it changes the access-time of the directories to the time in which it was executed.
I couldn't find any option for the "find" command that speaks of preserving metadata. Any ideas here would be greatly appreciated.
Thanks!
findon a read-only snapshot of the filesystem if using LVM/btrfs/zfs (that would also help with getting a consistent output in case something modifies the files in there whilefindis running).