mirror of
https://github.com/42wim/matterbridge.git
synced 2025-06-17 20:27:28 +02:00
Add information and example regarding management of downloaded content outside of matterbridge
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.
|
Loading…
x
Reference in New Issue
Block a user