Add information and example regarding management of downloaded content outside of matterbridge

Jerry Heiselman 2019-01-10 10:38:30 -06:00
parent 98a38862d3
commit 7e8c50595f

@ -58,3 +58,17 @@ MediaDownloadPath="/var/www/matterbridge"
MediaServerDownload="https://yourserver.com/matterbridge" MediaServerDownload="https://yourserver.com/matterbridge"
``` ```
When using the local download configuration, matterbridge does not clean up any of the content it downloads to the Mediaserver path. If you need to perform periodic clean up, then it should be done externally (i.e. via cron). An example cronjob and script are below:
crontab:
```
@daily /path/to/matterbridge/cleanup.sh
```
cleanup.sh:
```
#!/bin/bash
find /var/www/matterbridge -type d -mtime +30 | xargs rm -rf
```
This will delete all downloaded content that is more than 30 days old. You should adjust the path and the max age to suit your own needs.