Hi, I am trying to restore an old nextcloud setup onto a new server but having a few issues.
Firstly, I backed up the database (.sql file) and the nextcloud directory files from the www folder.
I then installed nextcloud on the new server, ran it like a new program to confirm it worked. I then delete the contents of the nextcloud directory and uploaded the backup.
I then deleted the new (test) database, then created it again, not changing anything and then uploaded the old database in to it.
When I try to login to the cloud, it keeps saying invalid password on both accounts.
Any ideas?
*Quick update:
I tried importing the database onto a locally hosted mysql database, using phpmyadmin and it seemed to import correctly, I can see groups etc. In the oc_users table, I can see the user accounts listed alongside their passwords and display names.
You can only restore an old setup 1:1. You can’t import stuff from a different version or partially import. Or there is no function to do that. You can of course do it manually, some data can be easier than others. If it is for business purposes, I wouldn’t take a risk and check with enterprise support.
Then please let us know how your restore procedure was, was it different from that in the documentation? For the passwords, you need the config.php. Or if you don’t have it, the passwords won’t work and you have to reset them. If you were using server-side encryption, without the config.php, I’m not sure if it possible to restore.
Looks not bad. One thing that comes in my mind is that the location of the data-folder could have been changed. There could be the old paths, so it’s like you changed the data folder location and therefore we have a howto:
But before you change anything, did you check your logfiles? They might tell you some more reason, perhaps some missing modules which are needed in apps, or database, cache settings that are slightly different and not adjusted.
you can set the user and admin password with an occ command on the command line.
so in case you have only two users that should be the quickest way to solve your problem.