From 51d993277d1d48ac749fcb3758793c72ca2aa879 Mon Sep 17 00:00:00 2001 From: James Nylen Date: Fri, 11 Jan 2019 15:41:49 -0500 Subject: [PATCH] Updated Mediaserver setup [advanced] (markdown) --- Mediaserver-setup-[advanced].md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Mediaserver-setup-[advanced].md b/Mediaserver-setup-[advanced].md index 133a156..921277d 100644 --- a/Mediaserver-setup-[advanced].md +++ b/Mediaserver-setup-[advanced].md @@ -65,10 +65,10 @@ If you run into issues with the amount of storage available, then it is advised cleanup.sh: ``` #!/bin/bash -find /path/to/matterbridge/media -type d -mtime +30 -delete +find /path/to/matterbridge/media -mindepth 1 -mtime +30 -delete ``` -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. It may be helpful to look at the [`find` manual page](https://www.gnu.org/software/findutils/manual/html_node/find_html/index.html). +This will delete all downloaded content that is more than 30 days old (but not the media directory itself, due to the use of `-mindepth 1`). You should adjust the path and the max age to suit your own needs. It may be helpful to look at the [`find` manual page](https://www.gnu.org/software/findutils/manual/html_node/find_html/index.html). To run the script as the user running matterbridge, execute `crontab -e` and add the following line to the bottom of the file: ```