thor,
@thor@berserker.town avatar

I pipe the Mastodon media files cleanup script on berserker.town to my inbox. It doesn't know it's being piped though, so it dutifully prints the progress bars anyway...

thor, (edited )
@thor@berserker.town avatar

I really don't understand why the Mastodon developers assume you'll be manually running these cleanup commands interactively in a terminal all the time. You have to run them very often if you don't want your disk costs to skyrocket. I stuffed all the cleanup commands in a single shell script like this and automated it with a crontab schedule, so I don't have to think about it:

tfunken,
@tfunken@lyratris.com avatar

@thor Well, I guess because those commands are not really meant to be used for a regular, automated use.

You can define many of those things in the settings and mastodon itself is then scheduling the cleanup tasks.

thor,
@thor@berserker.town avatar

deleted_by_author

  • Loading...
  • tfunken,
    @tfunken@lyratris.com avatar

    @thor They are all part of the content retention settings.

    The only thing that doesn't get called regularly is the remove-orphans function.

    The function loops trough all folders and files on the S3 backed.
    As many S3 providers charge also for every api call, this can become a very expensive action, very quickly.

    As orphan files should not occur that often, it should only be used on a case by case basis.

    thor,
    @thor@berserker.town avatar

    deleted_by_author

  • Loading...
  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • rosin
  • cisconetworking
  • GTA5RPClips
  • osvaldo12
  • khanakhh
  • DreamBathrooms
  • magazineikmin
  • Youngstown
  • everett
  • mdbf
  • slotface
  • InstantRegret
  • kavyap
  • cubers
  • JUstTest
  • modclub
  • normalnudes
  • Durango
  • thenastyranch
  • ethstaker
  • tacticalgear
  • ngwrru68w68
  • Leos
  • anitta
  • provamag3
  • tester
  • megavids
  • lostlight
  • All magazines