Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • 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 (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Mastodon
  3. deleting old crap

deleting old crap

Scheduled Pinned Locked Moved Mastodon
6 Posts 4 Posters 1.0k Views 4 Watching
  • 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.
  • RazielKanosR Offline
    RazielKanosR Offline
    RazielKanos
    wrote on last edited by RazielKanos
    #1

    Heyas, I just ran a cleanup and was amazed that of my nearly 10GB it just deleted 60 MB(!) of cached files and 800 KB of preview cards. How can I get rid of all the crap lets say... order than 2 months? can't be all 5GB in the database, right?

    jdaviescoatesJ nichu42N 2 Replies Last reply
    0
    • RazielKanosR RazielKanos

      Heyas, I just ran a cleanup and was amazed that of my nearly 10GB it just deleted 60 MB(!) of cached files and 800 KB of preview cards. How can I get rid of all the crap lets say... order than 2 months? can't be all 5GB in the database, right?

      jdaviescoatesJ Offline
      jdaviescoatesJ Offline
      jdaviescoates
      wrote on last edited by
      #2

      @RazielKanos where are you storing the media?

      I store in Scaleway S3 object storage where you can create rules to move stuff into cheaper (free for first 75GB) slower storage eg after 2 months (or anything else you decide)

      I use Cloudron with Gandi & Hetzner

      1 Reply Last reply
      0
      • RazielKanosR Offline
        RazielKanosR Offline
        RazielKanos
        wrote on last edited by
        #3

        well, that would be only a temporary solution. I want to start soon a public Mastodon Node and have been running my own to get to know the service, what I can do and what I can't do. I have to say it's very limited from an admin point of view

        murgeroM jdaviescoatesJ 2 Replies Last reply
        0
        • RazielKanosR RazielKanos

          well, that would be only a temporary solution. I want to start soon a public Mastodon Node and have been running my own to get to know the service, what I can do and what I can't do. I have to say it's very limited from an admin point of view

          murgeroM Offline
          murgeroM Offline
          murgero
          App Dev
          wrote on last edited by
          #4

          @RazielKanos You can attempt to run this, note it may need modification:

          https://gist.github.com/ThomasLeister/aa1c500eedeff19551f3bb8238533854

          --
          https://urgero.org
          ~ Professional Nerd. Freelance Programmer. ~

          1 Reply Last reply
          0
          • RazielKanosR RazielKanos

            well, that would be only a temporary solution. I want to start soon a public Mastodon Node and have been running my own to get to know the service, what I can do and what I can't do. I have to say it's very limited from an admin point of view

            jdaviescoatesJ Offline
            jdaviescoatesJ Offline
            jdaviescoates
            wrote on last edited by
            #5

            @RazielKanos I just spotted this in another thread, possibly of use/ interest?

            @alwynispat said in Mastodon 4.1.0 Released!:

            I also recommend that the cleanup.sh to add the tootctl media remove --prune-profiles

            I use Cloudron with Gandi & Hetzner

            1 Reply Last reply
            0
            • RazielKanosR RazielKanos

              Heyas, I just ran a cleanup and was amazed that of my nearly 10GB it just deleted 60 MB(!) of cached files and 800 KB of preview cards. How can I get rid of all the crap lets say... order than 2 months? can't be all 5GB in the database, right?

              nichu42N Offline
              nichu42N Offline
              nichu42
              wrote on last edited by nichu42
              #6

              @RazielKanos said in deleting old crap:

              Heyas, I just ran a cleanup and was amazed that of my nearly 10GB it just deleted 60 MB(!) of cached files and 800 KB of preview cards. How can I get rid of all the crap lets say... order than 2 months? can't be all 5GB in the database, right?

              tootctl media remove and tootctl statuses remove are run in the background with Mastodon v4 (settings can be found on the administration page).

              What I am running every night (via cron job) is:
              /app/code/bin/tootctl media remove-orphans
              /app/code/bin/tootctl preview-cards remove --days=7
              /app/code/bin/tootctl cache clear
              /app/code/bin/tootctl accounts prune
              and now with v4.1:
              /app/code/bin/tootctl media remove --prune-profiles --days 7

              My instance has around 40-50 users and is connected to 8 public relays.
              It is about 50 GB in size now (it was 80-90 GB with v4.0).
              Hope that helps.

              Matrix: @nichu42:blueplanet.social

              1 Reply Last reply
              3
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Bookmarks
              • Search