Migrating from one Nextcloud to another

nextcloudFrom time to time you might find it useful to migrate from an old installation, to a new one.  If you have a small number of users, this is probably easiest to do manually.  This article describes two possible methods.


Copy everything method

Start by putting Nextcloud into maintenance mode and wait 10 minutes.

  1. Copy all files (this might take some time).
  2. Dump the database.
  3. Paste all files to new server.
  4. Import database on new server.
  5. Check all values in config/config.php file and change any entries that are now misconfigured (e.g. database credentials, data directory etc...).
  6. Change DNS to point to new server (as required).
  7. Take Nextcloud out of maintenance mode.

Hopefully your migration is now complete.

 

Installation method

Start by deploying a new installation of Nextcloud.

  1. For this article I've created a new subdomain, so that I can migrate users one at a time without upsetting those who are still using the old instance throughout the transition.
  2. Add new users, based on the users from the old instance of Nextcloud, remember to give them the same quota.

Nextcloud Client

You will now need to reconfigure any Nextcloud clients so that they point to the new instance of Nextcloud.

  1. Uninstall the ownCloud client (if applicable).
  2. Install the Nexcloud client for your operating system (if you haven't already).
  3. Run the newly installed client.

Configure the client to synchronise the same local folder, to the new Nextcloud server.

Decommission the old Nextcloud

To avoid any confusion, it is now good practice to prevent access to the old instance of Nextcloud.

  1. Rename the root directory on the web server (e.g. rename to NextcloudBAK).

 

Further documentation

https://docs.nextcloud.com/server/15/admin_manual/maintenance/migrating.html

 

Thanks for visiting.