I have a requirement where there is a Shared Drive with Millions of documents, I want Alfresco to scan the drive and archive documents only if they meet a criteria like the datemodified is older then 3 years, Is this possible in Alfresco
I think that your best option could be a Scheduled Job:
Scheduled Jobs | Alfresco Documentation
Inside the executer implementation you will have to implement , using the apropiated java libraries, the logic for connecting to the shared folder, selecting the files and upload it to the repository.
Retrieving data ...