Closed servilla closed 6 months ago
Add a "root" owned cronjob to remove uploaded data from /var/lib/tomcat9/webapp/nis/data on an hourly basis. The proposed cron entry would be:
/var/lib/tomcat9/webapp/nis/data
0 * * * * find /var/lib/tomcat9/webapps/nis/data -mtime +1 -type d | xargs rm -rf
Where find -mtime +1 -type d returns a list of directories in the .../nis/data directory that are older than 1 day (24 hours).
find -mtime +1 -type d
.../nis/data
Add a "root" owned cronjob to remove uploaded data from
/var/lib/tomcat9/webapp/nis/data
on an hourly basis. The proposed cron entry would be:Where
find -mtime +1 -type d
returns a list of directories in the.../nis/data
directory that are older than 1 day (24 hours).