Prune mastodon accounts and orphan media
All checks were successful
/ terraform (push) Successful in 40s
/ ansible (push) Successful in 1m49s

This commit is contained in:
Jake Howard 2023-07-02 16:42:30 +01:00
parent b7d90cee98
commit 56b846f38c
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -4,7 +4,9 @@ set -ex
cd /opt/mastodon cd /opt/mastodon
docker-compose exec mastodon tootctl accounts prune
docker-compose exec mastodon tootctl media remove --days=7 docker-compose exec mastodon tootctl media remove --days=7
docker-compose exec mastodon tootctl statuses remove --days=7 docker-compose exec mastodon tootctl statuses remove --days=7
docker-compose exec mastodon tootctl preview_cards remove --days=7 docker-compose exec mastodon tootctl preview_cards remove --days=7
docker-compose exec mastodon tootctl media remove-orphans
docker-compose exec mastodon tootctl cache clear docker-compose exec mastodon tootctl cache clear