This is a missing documentation issue. I’m worried if i lose my nextcloud server, i wont be able to recover my data on external storage due to encryption. With modern nextcloud, what files must be backed up to decrypt external storage on another server?
I see the files (The XXX is a replacement of a small string to preserve privacy)
master_XXX.privateKey master_XXX.publicKey pubShare_XXX.privateKey pubShare_XXX.publicKey
in /var/www/nextcloud/data/files_encryption/OC_DEFAULT_MODULE. Are these files sufficient to backup to recover external storage?
You need a full backup, not only data and keys, configuration and database are important as well. There have been a few people with problems, so when you do a backup, you should try a recovery as well.