From b9cb57c5801d87779ce332d9503050f78a2e19c8 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 21 Oct 2022 20:08:55 +0100 Subject: [PATCH] Housekeeping --- manual/manual.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/manual/manual.md b/manual/manual.md index aa5c98adf..56bc76617 100644 --- a/manual/manual.md +++ b/manual/manual.md @@ -233,6 +233,24 @@ git pull chown -R epicyon:epicyon * systemctl restart epicyon ``` + +# Housekeeping +To avoid running out of disk space you will want to clear down old inbox posts. Posts from your instance outboxes will be unaffected. + +Create an archive script **/usr/bin/epicyon-archive**: + +```bash +#!/bin/bash +cd /opt/epicyon || exit 0 +/usr/bin/python3 epicyon.py --archive none --archiveweeks 4 --maxposts 32000 +``` + +You can adjust the maximum number of weeks and the maximum number of inbox posts as needed. Then add it as a cron entry. + +```bash +echo "*/60 * * * * root /usr/bin/epicyon-archive" >> /etc/crontab +``` + # Registering accounts You will notice that within the systemd daemon the *registration* option is set to *open*. In a browser if you navigate to the URL of your instance then you should see a *Register* button. The first account to register becomes the administrator.