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);'" +