1,104
edits
No edit summary |
|||
Line 41: | Line 41: | ||
=== Cache Pruning === | === Cache Pruning === | ||
We use [[tootctl]] to periodically prune data from the server by running these commands every month: | We use [[tootctl]] to periodically prune data from the server by running these commands every month. At the moment this keeps our storage in a sustainable range: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
# remote cover images from accounts that nobody on the instance is following | # remote cover images from accounts that nobody on the instance is following | ||
tootctl media remove --remove-headers | tootctl media remove --remove-headers | ||
</syntaxhighlight> | |||
We might also want to add these commands that make sense to do, but dont' necessarily contribute a ton to our storage burden. Want to check with the rest of [[Tech WG]] first before I do these (-[[Jonny]]) | |||
<syntaxhighlight lang="bash"> | |||
# remove remote accounts that no longer exist | # remove remote accounts that no longer exist | ||
# excludes accounts with confirmed activity in the last week in case the server is down | # excludes accounts with confirmed activity in the last week in case the server is down | ||
Line 54: | Line 58: | ||
tootctl media remove-orphans | tootctl media remove-orphans | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== Reference == | == Reference == | ||
* Helpful info on managing disk usage with [[tootctl]] - https://ricard.dev/improving-mastodons-disk-usage/ | * Helpful info on managing disk usage with [[tootctl]] - https://ricard.dev/improving-mastodons-disk-usage/ |