/

File Cleanup


File Cleanup

When using Cloud Storage, the recorded files are also stored locally on the server. It is recommended that you use a cron job to periodically clean up the local files. For example, this cron job would delete recordings that are over 2 days old:

0 2 * * * /usr/bin/find /tmp/live/streams/ -type f -mtime +2 -exec rm -rf {} \;
0 2 * * * /usr/bin/find /usr/local/red5pro/webapps/live/streams/ -type f -mtime +2 -exec rm -rf {} \;