Recovering user passwords from an offline Nextcloud server

Hi. I’ve ran into issues upgrading nextcloud and currently can’t use the web ui.

I have a backup of the passwords data, however it’s all encrypted. How would I decrypt the backup so I can get my passwords and other data in plain text?

Easiest if you have a backup is to go back to the last version of your backup. If you have things just partly updated, e.g. just the database, you might recover some tables (if the users haven’t changed, it might work, or at least you can recover data from these old users).

In case you don’t have a backup, at least do it now, that in any case you can go back to this version.

Decryption is a bit tricky, not sure if that works (I’d copy everything in a virtual machine and try to recover it there):

https://docs.nextcloud.com/server/latest/admin_manual/occ_command.html#encryption

I just have the database backed up, not the nextcloud files. I’m not using SSE, the Nextcloud Passwords app seemingly has it’s own encryption.

Do you have a database backup or a backup made by the app?

As is mentioned in the OP, I had a backup made by the passwords app. I also had a database backup.

Ok, the app backup contains everything needed to restore the app as it was.

The recommended way to get access to the passwords is as follows:

  1. Set up a blank Nextcloud (e.g. NextcloudPi, Docker container or a Virtual Machine)
  2. Install the Passwords App
  3. Create the users you need to access with the original user Id
  4. Follow the server migration guide

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