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. Ackee
  3. Leaving Ackee : data export

Leaving Ackee : data export

Scheduled Pinned Locked Moved Ackee
5 Posts 2 Posters 1.1k Views 2 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.
    • timconsidineT Offline
      timconsidineT Offline
      timconsidine
      App Dev
      wrote on last edited by timconsidine
      #1

      Much as I like the principle of Ackee, and it works nicely in so far as it goes, it is not as good (IMHO) as Umami.

      So I will be uninstalling Ackee but want to get what data I can out.
      However I can see no way of doing through the UI.
      Something in docs about use GraphQL and the API.
      But hardly easy.
      Now I have to set up a new system just to get data from my old system.

      Any thoughts on how I can get the data out?
      Not asking for every last ounce, just main metrics.

      timconsidineT 1 Reply Last reply
      0
      • timconsidineT timconsidine

        Much as I like the principle of Ackee, and it works nicely in so far as it goes, it is not as good (IMHO) as Umami.

        So I will be uninstalling Ackee but want to get what data I can out.
        However I can see no way of doing through the UI.
        Something in docs about use GraphQL and the API.
        But hardly easy.
        Now I have to set up a new system just to get data from my old system.

        Any thoughts on how I can get the data out?
        Not asking for every last ounce, just main metrics.

        timconsidineT Offline
        timconsidineT Offline
        timconsidine
        App Dev
        wrote on last edited by
        #2

        @timconsidine guess I am going to have to export from the terminal
        at least the mongo shell is easily accessible from terminal : well done Cloudron

        timconsidineT 1 Reply Last reply
        0
        • timconsidineT timconsidine

          @timconsidine guess I am going to have to export from the terminal
          at least the mongo shell is easily accessible from terminal : well done Cloudron

          timconsidineT Offline
          timconsidineT Offline
          timconsidine
          App Dev
          wrote on last edited by timconsidine
          #3

          @timconsidine so using the Cloudron app terminal, this seems to work

          events :

          root@4<appid>:/app/code# mongoexport -u "${CLOUDRON_MONGODB_USERNAME}" -p "${CLOUDRON_MONGODB_PASSWORD}" --host="${CLOUDRON_MONGODB_HOST}" --port="${CLOUDRON_MONGODB_PORT}" --db="${CLOUDRON_MONGODB_DATABASE}" --collection=events --out=/app/data/events.json
          2021-09-21T15:07:54.457+0000    connected to: mongodb://mongodb:27017/
          2021-09-21T15:07:54.485+0000    exported 0 records
          

          domains:

          root@<appid>:/app/code# mongoexport -u "${CLOUDRON_MONGODB_USERNAME}" -p "${CLOUDRON_MONGODB_PASSWORD}" --host="${CLOUDRON_MONGODB_HOST}" --port="${CLOUDRON_MONGODB_PORT}" --db="${CLOUDRON_MONGODB_DATABASE}" --collection=domains --out=/app/data/domains.json
          2021-09-21T15:08:22.075+0000    connected to: mongodb://mongodb:27017/
          2021-09-21T15:08:22.086+0000    exported 2 records
          

          actions :

          root@<appid>:/app/code# mongoexport -u "${CLOUDRON_MONGODB_USERNAME}" -p "${CLOUDRON_MONGODB_PASSWORD}" --host="${CLOUDRON_MONGODB_HOST}" --port="${CLOUDRON_MONGODB_PORT}" --db="${CLOUDRON_MONGODB_DATABASE}" --collection=actions --out=/app/data/actions.json
          2021-09-21T15:08:43.450+0000    connected to: mongodb://mongodb:27017/
          2021-09-21T15:08:43.479+0000    exported 0 records
          

          records :

          root@<appid>:/app/code# mongoexport -u "${CLOUDRON_MONGODB_USERNAME}" -p "${CLOUDRON_MONGODB_PASSWORD}" --host="${CLOUDRON_MONGODB_HOST}" --port="${CLOUDRON_MONGODB_PORT}" --db="${CLOUDRON_MONGODB_DATABASE}" --collection=records --out=/app/data/records.json
          2021-09-21T15:09:04.531+0000    connected to: mongodb://mongodb:27017/
          2021-09-21T15:09:05.540+0000    [#############...........]  2bd8f6343edd4d20.records  8000/14225  (56.2%)
          2021-09-21T15:09:06.089+0000    [########################]  2bd8f6343edd4d20.records  14225/14225  (100.0%)
          2021-09-21T15:09:06.089+0000    exported 14225 records
          
          

          Seems likes records is the primary table.
          Hope this helps someone.

          1 Reply Last reply
          3
          • nebulonN Offline
            nebulonN Offline
            nebulon
            Staff
            wrote on last edited by
            #4

            Thanks for sharing, this is always worth it to have a documented flow for such data migration steps 🙂

            timconsidineT 1 Reply Last reply
            3
            • nebulonN nebulon

              Thanks for sharing, this is always worth it to have a documented flow for such data migration steps 🙂

              timconsidineT Offline
              timconsidineT Offline
              timconsidine
              App Dev
              wrote on last edited by
              #5

              @nebulon I learn constantly from everyone here so pleased to share 😁

              Would be great to get umami packaged if someone is so kind
              I got it installed on CapRover so hopefully it is within viable scope. Would be great to have it in my production Cloudron.

              1 Reply Last reply
              1
              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