2026-10-14 05:00:46 +00:00
2026-10-14 04:58:12 +00:00
2026-10-14 05:00:46 +00:00
2026-10-14 05:00:18 +00:00

Mastodon Media Maintenance Script

This Script removes cached and federated media.

Requirements:

Instructions:

  • Create a File: nano mastodon.sh
  • Give the file the needed permissions: chmod 0755 mastodon.sh
  • Run it: bash mastodon.sh
  • Done.

What does this script do?

  • Deleting media (from federated servers) older than one day
  • Deleting cached files
  • Deleting files that do not belong to existing media attachments

Create hourly cronjob:

  • sudo crontab -u mastodon -e
  • Copy & Paste: 0 * * * * bash /home/mastodon/mastodon.sh
S
Description
This Script removes cached and federated media.
Readme AGPL-3.0
43 KiB
0 Stars 1 Watchers 0 Forks
Languages
Shell 100%