mirror of
https://github.com/RealOrangeOne/infrastructure.git
synced 2026-01-23 02:14:14 +00:00
Tweak mastodon clean commands
This commit is contained in:
parent
930b8e142d
commit
2528d8630a
1 changed files with 6 additions and 4 deletions
|
|
@ -1,12 +1,14 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Based on https://ricard.dev/improving-mastodons-disk-usage/
|
||||
|
||||
set -ex
|
||||
|
||||
cd /opt/mastodon
|
||||
|
||||
docker-compose exec mastodon tootctl accounts prune
|
||||
docker-compose exec mastodon tootctl media 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 media remove
|
||||
docker-compose exec mastodon tootctl media remove --prune-profiles
|
||||
docker-compose exec mastodon tootctl preview_cards remove --days=21
|
||||
docker-compose exec mastodon tootctl media remove-orphans
|
||||
docker-compose exec mastodon tootctl cache clear
|
||||
docker-compose exec mastodon tootctl statuses remove --days=180
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue