1,035
edits
(→23-08-01: new section) |
(→23-08-16: new section) |
||
Line 908: | Line 908: | ||
|Text=[[Server Costs and Invoices]]: Invoice for July, 2023 - USD 106.00 | |Text=[[Server Costs and Invoices]]: Invoice for July, 2023 - USD 106.00 | ||
|Link=https://discord.com/channels/1049136631065628772/1060187061811945542/1135939081914830928 | |Link=https://discord.com/channels/1049136631065628772/1060187061811945542/1135939081914830928 | ||
}} | |||
== 23-08-16 == | |||
{{Message | |||
|Author=mannazsci | |||
|Avatar=https://cdn.discordapp.com/avatars/540104559079456770/12ce492294d6a3cd6f1ea00cbe8edb04.png?size=1024 | |||
|Date Sent=23-08-16 04:11:30 | |||
|Channel=technical-wg | |||
|Text=[[Mastodon/Setup]] useful commands to improve disk usage: | |||
`# Prune remote accounts that never interacted with a local user | |||
RAILS_ENV=production /home/mastodon/live/bin/tootctl accounts prune; | |||
# Remove remote statuses that local users never interacted with older than 4 days | |||
RAILS_ENV=production /home/mastodon/live/bin/tootctl statuses remove --days 4; | |||
# Remove media attachments older than 4 days | |||
RAILS_ENV=production /home/mastodon/live/bin/tootctl media remove --days 4; | |||
# Remove all headers (including people I follow) | |||
RAILS_ENV=production /home/mastodon/live/bin/tootctl media remove --remove-headers --include-follows --days 0; | |||
# Remove link previews older than 4 days | |||
RAILS_ENV=production /home/mastodon/live/bin/tootctl preview_cards remove --days 4; | |||
# Remove files not linked to any post | |||
RAILS_ENV=production /home/mastodon/live/bin/tootctl media remove-orphans;` | |||
|Link=https://discord.com/channels/1049136631065628772/1049184335514828860/1141222683388956812 | |||
}} | }} |