Computers Network›workstations configuration
#11160
Solution for too many files under ~virgorun problem
It has been observed that the exessive numbers of files under the ~ directory of virgorun is creating different kind of problems.
The most evident one is the crash or misbehaviour of some graphical application most probably either scanning the directory or writing files into it
Some clean-up has been attempted in the past with little success.
As already mentioned the rule should be that files get stored under specific directories under the ~ of virgorun like:
/users/virgorun/Gc
/users/virgorun/Injection
or under the home extention
/users/virgorun/home
In order then to solve the problem once for all on the daily meeting it has been decided that a cron job should take care of removing obsolete files under the virgorun ~
So the implemented policy is the following:
Files directly under /users/virgorun (but not the ones stored under subdirectories) older that 60 days are gettig moved under
/users/virgorun/home/AutoCleanUp
directory
So users can find their moved files under
/users/virgorun/home/AutoCleanUp
For completeness the cron job moving the files look like this:
55 10 * * * find /users/virgorun -name ‘*‘ -type f -mtime +60 -maxdepth 1 -exec mv {} /users/virgorun/home/AutoCleanUp \ ;