Migrate nextcloud backup in docker environment

I have set up a new nextcloud environment with a docker compose. It is also running, is accessible, etc. Now I want to integrate my old data, which was originally used in another nextcloud instance. the data is on an external hard disk. I already thought about mounting them in compose:

volumes:
- /mnt/NC:/var/www/html/data

But that doesn’t really work. I have the typical nextcloud user folders, the nextcloud.log file, etc. on /mnt/NC. In other words, what was originally in /var/www/html/data. I had already used the mount command mentioned above, but this only works if I have previously deleted /var/www/html/data in the container. But then I get a fhler when accessing the nextcloud ui (I guess it searches for some data that is not in my backup). How do I migrate the backup correctly?

please review server migration docs and the forum tag server_migration this will likely answer your questions

This topic was automatically closed after 90 days. New replies are no longer allowed.