Migrating and upgrading at the same time into a new/upgraded NC instance

Greetings. I’m currently running NC 25.0.13 from a pre-assembled virtual machine provided by Hansson running Ubuntu 20.

It’s time to upgrade to the “latest” version of NC due to ongoing reliability problems. I am uncertain of the proper terminology for what I want to do but here is a synopsis:

  • Create a new NC instance of the latest version on a different computer (I’m running different linux instances using Virtualbox). What is the recommended host OS? What is the recommended method of deploying the new NC instance (SNAP, Docker, etc.?)
  • All my files, contacts, calendar data, users are on the old Hanssen Ubuntu 20 NC 25.0.13 virtual machine. I need to migrate all the data for all users to the new, completely separate NC instance.

I’ve seen a few guides but I’m not really finding how to move all the data to a completely different instance of NC that is the ‘latest version’.

Thank you in advance for your help.
Esteban

Please search the forum, this topic has been discussed far too often already server_migration

In short:

  • There is no way to migrate to a different version
  • either upgrade the old one until latest
  • or migrate first and upgrade the destination system

you can mix and match steps 2 and 3 as you want or even use an intermediate system like VM or docker to perform intermediate upgrades and only migrate the last version to the destination system.

the choice is yours, go with what you feel comfortable with…

go for Ubuntu if you decide that snap is for you;

  • if you want a default install with auto updates and low/zero maintenance (install and forget), go with the snap but read the docs first.

  • if you want a tinker-friendly, extremely flexible instance, go for the Docker install

  • if you’re tech/linux savvy and know what you’re doing, go for the manual webserver install

either way, you’ll need to migrate raw data from the “Hansson” machine. So copy, save or backup your /data/ directory, because that’s where your user data is located and be sure to download your calendars and contacts from the running NC instance as these are stored in the Database which is complicated to migrate.

How do you download calendars and contacts while keeping all the Nextcloud specific features? There’s no “backup to file” for these?

From what I gather, it looks like I can:

  1. setup a new NC instance in a new VM (snap is easier for me).
  2. copy the /data/ directory from the old NC VM to the new NC VM.
  3. export calendars/contacts/tasks, then import them into the new NC VM.

Is there a way to do #3?

@SuperHornet

start the Hansson instance:

1.download contacts/addressbooks:

  1. export calendars:
    grafik