Is there a tool that monitors a certain directory and if a program tries to access a file in that directory, the program loads that file from another place transparently for any application that tries to load that file?
The background is that I have a local development environment for a large server application. At the moment, I sync all the files created by the users on the production system from time to time via
rsync to my local machine. But the amount of data has become too big. I can not store the several hundreds of gigabytes from the production environment on my local dev machine. Is there a way of mimicking the files from the external system and load/sync them only from the external system if they are really needed?
Writing changes to these "monitored" directories should nevertheless take only place locally.