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. Possible to move Mastodon Content to DO spaces or other external storage?

Possible to move Mastodon Content to DO spaces or other external storage?

Scheduled Pinned Locked Moved Solved Mastodon
14 Posts 6 Posters 1.5k Views 7 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.
  • nebulonN nebulon

    Volumes would be the answer, more details on that at https://docs.cloudron.io/apps/#data-directory

    SupaikuS Offline
    SupaikuS Offline
    Supaiku
    wrote on last edited by
    #4

    @nebulon Thank ya'll! that all did the trick 🙂 much apprciated!

    scookeS 1 Reply Last reply
    1
    • SupaikuS Supaiku

      @nebulon Thank ya'll! that all did the trick 🙂 much apprciated!

      scookeS Offline
      scookeS Offline
      scooke
      wrote on last edited by
      #5

      @Supaiku Can you share how you set this up please? I don't see where I would enter this info, and in what syntax, in the .env.production. Or is it a preference within the app?

      A life lived in fear is a life half-lived

      SupaikuS 1 Reply Last reply
      0
      • scookeS scooke

        @Supaiku Can you share how you set this up please? I don't see where I would enter this info, and in what syntax, in the .env.production. Or is it a preference within the app?

        SupaikuS Offline
        SupaikuS Offline
        Supaiku
        wrote on last edited by
        #6

        @scooke

        I added a volume to my cloudron Digital Ocean droplet on the Volumes menu. and followed their config instructions to mount it to a mount point.
        8a407aa7-337a-4953-bbb4-3e176aeedd69-image.png

        Then in cloudron under the main settings menu under volumes I added the volume with a filesystem mount point. Here's what it looks like after being setup:
        c0417e02-508f-45b1-8eb9-86dc50432ab1-image.png

        Once it was added as a mount point I could add the volume and select it from the list as shown in @subven 's screenshots.

        Is that enough to get you going?

        scookeS 1 Reply Last reply
        0
        • SupaikuS Supaiku

          @scooke

          I added a volume to my cloudron Digital Ocean droplet on the Volumes menu. and followed their config instructions to mount it to a mount point.
          8a407aa7-337a-4953-bbb4-3e176aeedd69-image.png

          Then in cloudron under the main settings menu under volumes I added the volume with a filesystem mount point. Here's what it looks like after being setup:
          c0417e02-508f-45b1-8eb9-86dc50432ab1-image.png

          Once it was added as a mount point I could add the volume and select it from the list as shown in @subven 's screenshots.

          Is that enough to get you going?

          scookeS Offline
          scookeS Offline
          scooke
          wrote on last edited by
          #7

          @Supaiku Not really. What I meant was how did you get Mastodon to use this external storage?

          A life lived in fear is a life half-lived

          subvenS SupaikuS 2 Replies Last reply
          0
          • scookeS scooke

            @Supaiku Not really. What I meant was how did you get Mastodon to use this external storage?

            subvenS Offline
            subvenS Offline
            subven
            wrote on last edited by
            #8

            @scooke see my second screenshot above. You can transfer the whole data directory to the mounted volume so it can be used with any app. The other option is to add a volume as mount point inside the container so the app can utilize it. If Mastodon has the option to configure media/cache/other directorys, this could be utilized this way.

            1 Reply Last reply
            1
            • scookeS scooke

              @Supaiku Not really. What I meant was how did you get Mastodon to use this external storage?

              SupaikuS Offline
              SupaikuS Offline
              Supaiku
              wrote on last edited by
              #9

              @scooke yes, @subven 's response is how I did it

              scookeS 1 Reply Last reply
              0
              • SupaikuS Supaiku

                @scooke yes, @subven 's response is how I did it

                scookeS Offline
                scookeS Offline
                scooke
                wrote on last edited by
                #10

                @Supaiku I believe you both, I still don't get it! So, Cloudron lets you move the entire app off of the Cloudron disk to the external Volume, and it runs from there? My mind isn't grasping that because when I've used external Volumes for data , it keeps disconnecting. So, how could an entire app run off of the external volume?

                If the app itself stays on the Cloudron, then how does Mastodon, or Cloudron, know what the Data is to move to the external Volume? Because, from what I understand, within Mastodon you need to tell it where the external data store is. Is this automatically done by Cloudron then if you choose the external Volume at its mount point?

                A life lived in fear is a life half-lived

                subvenS 1 Reply Last reply
                0
                • scookeS scooke

                  @Supaiku I believe you both, I still don't get it! So, Cloudron lets you move the entire app off of the Cloudron disk to the external Volume, and it runs from there? My mind isn't grasping that because when I've used external Volumes for data , it keeps disconnecting. So, how could an entire app run off of the external volume?

                  If the app itself stays on the Cloudron, then how does Mastodon, or Cloudron, know what the Data is to move to the external Volume? Because, from what I understand, within Mastodon you need to tell it where the external data store is. Is this automatically done by Cloudron then if you choose the external Volume at its mount point?

                  subvenS Offline
                  subvenS Offline
                  subven
                  wrote on last edited by
                  #11

                  @scooke easy. Cloudrons app packages just contain the core app packed as docker container. Everything you customize or create during runtime is stored in appdata. You can move the appdata directory to another location outside of Cloudron but the app itself will still be powered and maintained by Cloudron. Read the docs (data-directory) 🙂

                  SupaikuS 1 Reply Last reply
                  3
                  • subvenS subven

                    @scooke easy. Cloudrons app packages just contain the core app packed as docker container. Everything you customize or create during runtime is stored in appdata. You can move the appdata directory to another location outside of Cloudron but the app itself will still be powered and maintained by Cloudron. Read the docs (data-directory) 🙂

                    SupaikuS Offline
                    SupaikuS Offline
                    Supaiku
                    wrote on last edited by
                    #12

                    also good to move backups off the main disk - this can be done easily for all of Cloudron with DO spaces or other methods via the backup settings

                    doodlemania2D 1 Reply Last reply
                    0
                    • SupaikuS Supaiku

                      also good to move backups off the main disk - this can be done easily for all of Cloudron with DO spaces or other methods via the backup settings

                      doodlemania2D Offline
                      doodlemania2D Offline
                      doodlemania2
                      App Dev
                      wrote on last edited by
                      #13

                      Just an FYI - I moved cache off local to an S3 endpoint. It was cake. It's a bit 'slower' now but you can also add a local'ish cache to speed things up a bit.

                      1 Reply Last reply
                      0
                      • girishG Do not disturb
                        girishG Do not disturb
                        girish
                        Staff
                        wrote on last edited by
                        #14

                        Yesterday, we pushed a package which prunes the cache a bit more aggressively - https://git.cloudron.io/cloudron/mastodon-app/-/commit/87e046061335a04c96cd9a133c4bf679caeacb2a . Atleast, in our instance, that brought down the cache size from 12G to almost 2GB.

                        1 Reply Last reply
                        2
                        • S stevespaw referenced this topic on
                        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