Move snap to Cloudron
-
Hi, I was wondering if I can move a Nextcloud snap installation to Cloudron, perhaps similar to this tutorial?
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.
-
Hi, I was wondering if I can move a Nextcloud snap installation to Cloudron, perhaps similar to this tutorial?
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.
-
@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.
-
@girish Will it also be possible to do this just in case it won't work with the plugin?
-
@ekevu123 yes, the database dump is part of the backup. If you unpack the backup file, it will contain postgresqldump inside it.
-
@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?
@ekevu123 try the plugin first? I think that may be the only way properly migrate users (as opposed to just their data)
-
@ekevu123 try the plugin first? I think that may be the only way properly migrate users (as opposed to just their data)
@jdaviescoates I want to be prepared to switch options quickly if it doesn't work. But I will go with it first.
-
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?
-
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?
@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.
-
@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.
@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.