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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Move snap to Cloudron

    Nextcloud
    3
    11
    358
    Loading More Posts
    • 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.
    • E
      ekevu123 last edited by ekevu123

      Hi, I was wondering if I can move a Nextcloud snap installation to Cloudron, perhaps similar to this tutorial?

      https://github.com/nextcloud-snap/nextcloud-snap/wiki/Migrating-from-nextcloud-snap-to-Nextcloud-server

      Ideally I would like to unify two VPS I have currently running on one dedicated server (price-wise about the same) under the roof of Cloudron. The Nextcloud installation is being used by multiple users though.

      EDIT: I was wondering if I could use the new user migration app of Nextcloud 24 to achieve this? I would then install Nextcloud under Cloudron in the same way as before including all apps and then simply log into every single user account using "impersonate" and re-import this into the new instance. If this works, it would be an elegant way to avoid a lot of mistakes that could happen otherwise.

      Happy to hear other suggestions as well.

      girish 1 Reply Last reply Reply Quote 1
      • girish
        girish Staff @ekevu123 last edited by girish

        @ekevu123 I think the user migration nextcloud app should work. Haven't tried it myself though. If you attempt it, please do put your notes here.

        E 1 Reply Last reply Reply Quote 2
        • E
          ekevu123 @girish last edited by

          @girish Will it also be possible to do this just in case it won't work with the plugin?

          https://github.com/nextcloud-snap/nextcloud-snap/wiki/Migrating-from-nextcloud-snap-to-Nextcloud-server

          girish 1 Reply Last reply Reply Quote 0
          • girish
            girish Staff @ekevu123 last edited by

            @ekevu123 yes, the database dump is part of the backup. If you unpack the backup file, it will contain postgresqldump inside it.

            E 1 Reply Last reply Reply Quote 0
            • E
              ekevu123 @girish last edited by

              @girish Just to clarify, do I create a new database like it states in the tutorial, but inside the Nextcloud app that I will have installed already in Cloudron? Or should I import all data into the existing database?

              jdaviescoates 1 Reply Last reply Reply Quote 0
              • jdaviescoates
                jdaviescoates @ekevu123 last edited by

                @ekevu123 try the plugin first? I think that may be the only way properly migrate users (as opposed to just their data)

                I use Cloudron with Gandi & Hetzner

                E 1 Reply Last reply Reply Quote 0
                • E
                  ekevu123 @jdaviescoates last edited by

                  @jdaviescoates I want to be prepared to switch options quickly if it doesn't work. But I will go with it first.

                  1 Reply Last reply Reply Quote 0
                  • E
                    ekevu123 last edited by

                    The user migration plugin just provides me with an empty archive file, so this doesn't seem to be an option. I will try the other mentioned option then next time.

                    1 Reply Last reply Reply Quote 0
                    • E
                      ekevu123 last edited by

                      I got the user migration plugin to work (the process was terminated because the server didn't have enough resources), but I haven't attempted the migration yet because I cannot solve another problem:

                      All information which file is shared with whom would be completely lost and there doesn't seem to be a way to preserve it because the information is being stored in the database.

                      And the problem with this (https://github.com/nextcloud-snap/nextcloud-snap/wiki/Migrating-from-nextcloud-snap-to-Nextcloud-server) is that Cloudron uses PostgreSQL and not MySQL.

                      The only solution I have now is to manually go through everyone's account on both instances and see if I can share every user's file manually. That will mean a few hours of boring, manual work, unless someone has a better idea?

                      jdaviescoates 1 Reply Last reply Reply Quote 0
                      • jdaviescoates
                        jdaviescoates @ekevu123 last edited by

                        @ekevu123 just thinking out loud, but I guess you could either try installing Nextcloud into a Cloudron LAMP app or forking the existing Cloudron Nextcloud app to create a custom Cloudron Nextcloud app that uses MySQL instead.

                        I use Cloudron with Gandi & Hetzner

                        E 1 Reply Last reply Reply Quote 0
                        • E
                          ekevu123 @jdaviescoates last edited by

                          @jdaviescoates This is an idea I have quickly considered as well but one reason why I want to move this installation to Cloudron so desperately is that I want to have less work with it, not more 🙂

                          We will probably need to live with the fact that we will need to re-share all information again and simply do the move using one of the manual ways (e.g. user migration plugin). That will create chaos for a day or two, but at least then we will have a more stable installation.

                          1 Reply Last reply Reply Quote 2
                          • First post
                            Last post
                          Powered by NodeBB