diff --git a/Mediaserver-setup-[advanced].md b/Mediaserver-setup-[advanced].md index 8d6fb4a..23cefe7 100644 --- a/Mediaserver-setup-[advanced].md +++ b/Mediaserver-setup-[advanced].md @@ -58,3 +58,17 @@ MediaDownloadPath="/var/www/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. \ No newline at end of file