Add cronjob to remove old backup messages.

Signed-off-by: Thomas Hochstein <thh@thh.name>
This commit is contained in:
Thomas Hochstein 2026-02-07 21:56:45 +01:00
parent 077431fa06
commit 9483730df7
2 changed files with 4 additions and 0 deletions

View file

@ -7,6 +7,7 @@ huhu 0.11.0 (unreleased)
* Drop more headers. * Drop more headers.
* Only connect to newsserver if there are approved posts. * Only connect to newsserver if there are approved posts.
* Fix headers with continuation immediately at start. * Fix headers with continuation immediately at start.
* Add cronjob to remove old backup messages.
huhu 0.10 (unknown) huhu 0.10 (unknown)
* huhu reports version 0.09 (from MOD/Displaylib.pm), but has code * huhu reports version 0.09 (from MOD/Displaylib.pm), but has code

View file

@ -22,6 +22,9 @@ BINDIR="@HUHU_DIR@/bin"
# Remove old records from database # Remove old records from database
5 3 * * * "$BINDIR/removeold.pl" "$CONFIG" 5 3 * * * "$BINDIR/removeold.pl" "$CONFIG"
# Remove old messages (older than 14 days) from backup dir
15 3 * * * find @USER_HOME@/backup -type f -mtime +14 -exec rm {} \;
# Reads database, sends reply to authors of pending messages. # Reads database, sends reply to authors of pending messages.
# 10 * * * * "$BINDIR/autoreply.pl" "$CONFIG" # 10 * * * * "$BINDIR/autoreply.pl" "$CONFIG"