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.