From: Michael Tremer <michael.tremer@ipfire.org>
To: development@lists.ipfire.org
Subject: Re: [PATCH] crontab: add periodic cleanup the collectd RRD (graphs)
Date: Thu, 25 Aug 2022 11:48:39 +0100 [thread overview]
Message-ID: <AE966C7A-DCB6-4ECA-A63F-CB52C40BFAA7@ipfire.org> (raw)
In-Reply-To: <20220825003129.3552746-1-jon.murphy@ipfire.org>
[-- Attachment #1: Type: text/plain, Size: 1240 bytes --]
Hello Jon,
Thanks for the patch.
Sorry if this sounds like a stupid question, but what is the rationale for this?
-Michael
> On 25 Aug 2022, at 01:31, Jon Murphy <jon.murphy(a)ipfire.org> wrote:
>
> - Created (mostly) for old openvpn graphs
> - RRD removed when no graph modification for +365 days
> - chosen since graph max out is 365 days
> - fcron job runs once per week
> - chosen since this is just a cleanup and it doesnt need to run everyday
> Note: logging can be added if needed.
>
> Signed-off-by: Jon Murphy <jon.murphy(a)ipfire.org>
> ---
> config/cron/crontab | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/config/cron/crontab b/config/cron/crontab
> index b727531fc..7088e0b75 100644
> --- a/config/cron/crontab
> +++ b/config/cron/crontab
> @@ -80,5 +80,8 @@ HOME=/
> # Cleanup the mail spool directory
> %weekly * * /usr/sbin/dma-cleanup-spool
>
> +# Cleanup the collectd RRD (graphs)
> +%weekly * * /bin/find /var/log/rrd -mtime +365 -type f -name '*.rrd' -delete -o -type d -empty -delete
> +
> # Update DNS trust anchor
> %daily,random * * @runas(nobody) /usr/sbin/unbound-anchor -a /var/lib/unbound/root.key -c /etc/unbound/icannbundle.pem
> --
> 2.30.2
>
next prev parent reply other threads:[~2022-08-25 10:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-25 0:31 Jon Murphy
2022-08-25 10:24 ` Bernhard Bitsch
2022-08-25 10:48 ` Michael Tremer [this message]
[not found] <44F26D75-426C-45A8-A405-70A20BEBA807@gmail.com>
2022-08-25 15:44 ` Michael Tremer
[not found] <29B9BB98-2629-4A85-B8FA-BB65BA6D0642@gmail.com>
2022-08-25 16:32 ` Michael Tremer
[not found] <39BEBD7B-18C4-4CEB-84DD-CDFC5227866A@gmail.com>
2022-09-20 7:58 ` Michael Tremer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AE966C7A-DCB6-4ECA-A63F-CB52C40BFAA7@ipfire.org \
--to=michael.tremer@ipfire.org \
--cc=development@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox