Automatic cleaning
Automatic cleaning is done by scripts :
pi2 machine :
clean_online!
pi1 machine :
clean_offline!
These two scripts are executed from crontab
( at 18:30 ) they act in such a way that depending on DAYS_BACK
parameter they clean nights older
then this number of days. On pi2 machine whole folder
/data2/results/YYYYMMDD of old night is removed , while on pi1 computer
only fits and some other temporary files are removed and the directory
YYYYMMDD is moved to /data1/results.
It is possible to specify bad nights which should be deleted at first (
to keep best nights on disk ) , it can be done by editing file :
/data2/results/bad_nights
and placing name of night to be removed in this file , example :
20050704
20050703
this means that first night 20050704 will be removed and next 20050703.
In case available disk space larger then 30G then no night is removed