Migrate AIO to new machine by unplugging external SSD

I bought a new machine and want to migrate my old Nextcloud AIO instance to it.

This post states that one possible way to migrate is using the borg backup tool.
I fear though that I might mess something up in this step.

Because I have all my Nextcloud Data on a external SSD anyways I wondered if it is possible to plug the external SSD into the new server and point to the correct location using NEXTCLOUD_DATADIR ?

If it is really all nextloud data, i.e. including the DB, that might be possible. Do you have a backup of that external HDD? If so, you can give it a try without fearing any data loss.
The whole point of docker is that you can easily replace the apps, while the data stays the same.

Sorry for the newbie question.
But if I did set the NEXTCLOUD_DATADIR on my old machine, then is there the database too?

I never explicitly chose a location for the database.

https://github.com/nextcloud/all-in-one#how-to-change-the-default-location-of-nextclouds-datadir

Yes. Setup docker master container with the datadir and try. But as I said, try with a backup, e.g. create an image of the external disk or similar, before you start.

I assume you do not change the domain etc.

No, it is not as the database will always be stored in a docker volume.

However see GitHub - nextcloud/all-in-one: 📦 The official Nextcloud installation method. Provides easy deployment and maintenance with most features included in this one Nextcloud instance.

Okay at this point I think it is easier to just apply an backup :smile:

Doesn’t hurt anyway to test the backup solution every once in a while.

EDIT: Just did it, it was super easy. No complications at all. Just run the nextcloud aio on the new machine and selected restore from backup during the installation process

2 Likes

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.