Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

  1. Home
  2. Uncategorized
  3. Oof, need to find some way to claw back some Mastodon database space.

Oof, need to find some way to claw back some Mastodon database space.

Scheduled Pinned Locked Moved Uncategorized
mastoadmin
5 Posts 4 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • liam@mastodon.gruezi.netL This user is from outside of this forum
    liam@mastodon.gruezi.netL This user is from outside of this forum
    liam@mastodon.gruezi.net
    wrote last edited by
    #1

    Oof, need to find some way to claw back some Mastodon database space.

    Anyone aware of a script that deletes old posts from remote users with 0 local followers or similar?

    #MastoAdmin

    Link Preview Image
    cadusilva@bolha.oneC spielleitung@mastodon.pnpde.socialS waffles@masto.yttrx.comW 3 Replies Last reply
    0
    • liam@mastodon.gruezi.netL liam@mastodon.gruezi.net

      Oof, need to find some way to claw back some Mastodon database space.

      Anyone aware of a script that deletes old posts from remote users with 0 local followers or similar?

      #MastoAdmin

      Link Preview Image
      cadusilva@bolha.oneC This user is from outside of this forum
      cadusilva@bolha.oneC This user is from outside of this forum
      cadusilva@bolha.one
      wrote last edited by
      #2

      @liam hey, it's in portuguese but you can use a translator to understand the comments:

      https://jardim.social.br/administradores/script-limpeza/

      You can also search for `pg_repack` and `vacuumdb`.

      liam@mastodon.gruezi.netL 1 Reply Last reply
      0
      • liam@mastodon.gruezi.netL liam@mastodon.gruezi.net

        Oof, need to find some way to claw back some Mastodon database space.

        Anyone aware of a script that deletes old posts from remote users with 0 local followers or similar?

        #MastoAdmin

        Link Preview Image
        spielleitung@mastodon.pnpde.socialS This user is from outside of this forum
        spielleitung@mastodon.pnpde.socialS This user is from outside of this forum
        spielleitung@mastodon.pnpde.social
        wrote last edited by
        #3

        @liam here's what I use: https://codeberg.org/pnpde.social/scripts/src/branch/main/mastodon-maintenance.sh

        It's really just some tootctl calls. Iow: Mastodon brings a tool for the task πŸ™‚

        1 Reply Last reply
        0
        • cadusilva@bolha.oneC cadusilva@bolha.one

          @liam hey, it's in portuguese but you can use a translator to understand the comments:

          https://jardim.social.br/administradores/script-limpeza/

          You can also search for `pg_repack` and `vacuumdb`.

          liam@mastodon.gruezi.netL This user is from outside of this forum
          liam@mastodon.gruezi.netL This user is from outside of this forum
          liam@mastodon.gruezi.net
          wrote last edited by
          #4

          @cadusilva Thank you!

          I had a bunch of the tootctl commands in a script that runs periodically already, but not the statuses remove one and didn't think to check the docs πŸ˜…

          1 Reply Last reply
          0
          • liam@mastodon.gruezi.netL liam@mastodon.gruezi.net

            Oof, need to find some way to claw back some Mastodon database space.

            Anyone aware of a script that deletes old posts from remote users with 0 local followers or similar?

            #MastoAdmin

            Link Preview Image
            waffles@masto.yttrx.comW This user is from outside of this forum
            waffles@masto.yttrx.comW This user is from outside of this forum
            waffles@masto.yttrx.com
            wrote last edited by
            #5

            @liam

            # Prune remote accounts that never interacted with local users
            tootctl accounts prune

            1 Reply Last reply
            1
            0
            • R relay@relay.mycrowd.ca shared this topic
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups