How to re-import EVERTHING back into nextcloud

So I recently did some migration of my kubernetes cluster, I had a mixup with the data, so I accidentally did not mount the correct PV, I fixed that now, now in /var/www/html or whatever the directory is, has the correct files, however the nextcloud instance itself, is not adjusting to the new files, I ran:
php occ files:scan --all
but that only imported the files, I have all the stuff like user settings, applications, notes, all in my instance now, yet nextcloud isnt recognizing it, are there other commands other than the scan ones that will do the rest?

The appropriate information is stored in the database, e.g. MariaDB. Normally you make a Backup and then a Restore. With php occ files:scan --all you have only read the files into the database again. This only makes sense if, for example, new files are added but users etc. already exist.

You must restore the database e.g. MariaDB.

1 Like