[IPOL dev-users] Automatic temporary files removal in Purple

Miguel Colom colom at cmla.ens-cachan.fr
Sat Oct 19 10:25:34 CEST 2019


Dear Purple users,

As you might know, this server doesn't clean up any temporal files of  
your old demo system executions. This has caused some problems  
recently, since the server (no surprise) run out of disk space.

To avoid this problem, we have implemented a script that will  
automatically remove old temporary files from all users. Only those  
which are older than one week. The script will run every Friday at  
10:30 AM.

It does the following:

for d in /home/*/ ; do
     if [ "$d" == "/home/facciolo/" ] ; then
         continue
     fi

     cd $d
     find . -type d -regex  
"\./ipol/demo/app/[-_0-9a-zA-Z]+/tmp/[-_0-9a-zA-Z]+$" -ctime +7 -exec  
rm -rf {} \;
done

If for any valid reason you don't want that your temporary files are  
removed, please let me know (as soon as possible, and before Friday!)  
and I'll add you as an exception (as for user facciolo).
If not, the script will kindly take out the trash for you every week.

Final remark: the workshops in the Purple server are NOT maintained  
and every user is responsible for their own. They only exist because  
they were created before the current system existed and thus we keep  
them (and it'd be good if their authors rewrote them in the current  
system).
However, no new demos should be created in Purple or the old system in  
production. If you do it, remember that if you do it in Purple is  
under your own responsibility (and we can't offer any support), and if  
you write code for the old system, it won't never be allowed as an  
IPOL publication.
All new demos need to be created in the current system via its Control Panel.

Best,
Miguel




More information about the dev-users mailing list