diff --git a/scripts/cron.sh b/scripts/cron.sh index 0e50dc1172113453b43a7a96664a3771d0b3a1d6..b7d89a821d9cb4d8350c51625927085e1ef5ef24 100644 --- a/scripts/cron.sh +++ b/scripts/cron.sh @@ -16,4 +16,7 @@ else fi # shellcheck disable=SC2002 cat "$LOGFILE" | mail -E -s "rwm backup-all $RESULT" $USER + +find /var/log/rwm -type f -mtime +90 -exec rm {} \; + exit $RET \ No newline at end of file