Unsolved
32 Posts
0
1443
List file by access time
Our client wants to look at using CloudPools for archiving some data for a particular service. What i am trying to do is find a way how i can look at this services directory structure and find out how many files have been accessed in the last 30 days and where from.
For example: Say we have a service called FRED and that top level smb share is /ifs/data/FRED. This then has dozens of sub folders one for each weeks worth of data. So we have a folder structure like this;
/ifs/data/FRED/week1
/ifs/data/FRED/week2
/ifs/data/FRED/week3
etc etc
Issue
I would like to be able to see how many files in these folders and sub-folders were accessed in the last 30 days for example. Is there a way to do that?
I have been playing around with the find command and using the -atime argument but cannot get that to work properly so wonder if anyone has any ideas on how to get that working?
Phil.Lam
1 Rookie
1 Rookie
•
567 Posts
0
May 15th, 2019 16:00
Try
# find /ifs/data/FRED/week1 -atime +30 -print
# find /ifs/data/FRED/week2 -atime +30 -print
# find /ifs/data/FRED/week3 -atime +30 -print