Created
August 2, 2023 14:31
-
-
Save farrokhi/9ae70c3a24d80bc0675e47bae02cb3cd to your computer and use it in GitHub Desktop.
Cleanup mastodon server and remove unnecessary cached objects
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
su - mastodon | |
cd live | |
export RAILS_ENV=production | |
./bin/tootctl accounts prune; | |
./bin/tootctl statuses remove --days 4; | |
./bin/tootctl media remove --days 4; | |
./bin/tootctl media remove --remove-headers --include-follows --days 0; | |
./bin/tootctl preview_cards remove --days 4; | |
./bin/tootctl media remove-orphans; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment