From 15d47c3ffaccaaaf43ad7fd531a7c22fc50e5d32 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 2 Nov 2021 13:38:27 -0600 Subject: [PATCH] fix --- pleroma/crontab | 3 ++- postgresql/crontab | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pleroma/crontab b/pleroma/crontab index 52654ce..2bfc5b9 100644 --- a/pleroma/crontab +++ b/pleroma/crontab @@ -1,2 +1,3 @@ -00 23 * * * bash /backup.sh +00 03 * * 7 su pleroma -s /bin/bash -lc "/opt/pleroma/bin/pleroma_ctl database prune_objects" +05 03 * * 7 su pleroma -s /bin/bash -lc "/opt/pleroma/bin/pleroma_ctl database ensure_expiration" diff --git a/postgresql/crontab b/postgresql/crontab index 52654ce..870fcc5 100644 --- a/postgresql/crontab +++ b/postgresql/crontab @@ -1,2 +1,4 @@ 00 23 * * * bash /backup.sh +00 04 * * 7 su postgres -s $SHELL -lc "/usr/lib/postgresql/12/bin/psql -d pleroma -c 'vacuum(full,analyse,verbose);'" +