Storage: Difference between revisions

360 bytes added ,  01:00, 16 August 2023
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 41: Line 41:
=== Cache Pruning ===
=== Cache Pruning ===


We use [[tootctl]] to periodically prune data from the server by running these commands every month:
See [[Maintenance#Cache Pruning]]
 
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]] 23-08-15)
<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 60:
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/