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


Skip to content
  • 0 Votes
    8 Posts
    173 Views
    jdaviescoatesJ

    @girish said in All previous folders and files have disappeared after migrating Nextcloud to a different Cloudron server:

    @jdaviescoates that makes sense. So, I recommend one of these:

    This depends on how much you use nextcloud. Just setup a fresh nextcloud and import things over from your previous install. Most things have import/export . For files, since you already installed a broken one, it already has the files. Just cp over all your files from broken install to the fresh one. After you copy files, https://docs.cloudron.io/apps/nextcloud/#rescan-files in web terminal. Note that you will have to also re-share stuff if you use that feature.

    OK, I might do that. Thankfully the two instances of Nextcloud I need to migrate aren't very large nor very actively used.

    Alternately, you have to wait for us to investigate if the situation has changed wrt migrating users from uid based installations .

    That'd be great. Ideally Nextcloud on Cloudron would be properly portable like most other apps seem to be.

    For now I'm just going to do nothing and leave the Nexcloud apps where there are (but do really want to move them so I can save money by cancelling the VPS servers they are currently on)

  • 1 Votes
    7 Posts
    192 Views
    jdaviescoatesJ

    @girish aftering giving both redis and the app a load more memory the import worked fine. I don't know why I didn't just try that before to be honest.

    I'm not sure how it managed to half-work before so that the apps was running and the import seemed to have worked, but without the users, but I've just done the back import again and the users have re-appeared, so panic over. Phew.

  • 1 Votes
    11 Posts
    236 Views
    jdaviescoatesJ

    @girish said in Best practice for migrating apps from one Cloudron to another?:

    Ah! I misread your issue then.

    Yeah, I think you missed or misread this bit:

    @jdaviescoates said in Best practice for migrating apps from one Cloudron to another?:

    But the odd thing is that in the App Email settings on the old server it has always been and is still ghost.app

    I can only guess that it was working there because I had set-up the required email addresses that are set in the portal settings in Ghost:

    41999d97-12f0-41e3-b47b-b95114bcdca2-image.png

    I guess when Cloudron couldn't find that mailbox on the new server it tried to just send as 'ghost.app' instead? 🤷

    But yeah, as you say, would be good to somehow remind users this might need to be done too, like you say:

    @girish said in Best practice for migrating apps from one Cloudron to another?:

    Mmmm... I wonder how the user can be reminded of this. I think for a start having this in the doc page as a checklist (which is what this thread is about!) will help.

    Agreed 🙂

    But maybe whenever importing an app a pop-up could appear saying something like "you might also need to recreate mailboxes on this domain" or something? 🤷

  • 1 Votes
    8 Posts
    133 Views
    girishG

    @plains-digital yes, you can also restore app by app. https://docs.cloudron.io/backups/#import-app-backup . But obviously, restoring entire server via backup is far simpler.

  • 2 Votes
    2 Posts
    79 Views
    nebulonN

    While there are no mastodon specific notes on importing, there is one guide at https://docs.cloudron.io/guides/import-postgresql/ for importing postgres apps (which mastodon uses).

    For exporting, one can make a backup of the app and will have the db dump part of the backup together with all other data.