Restore and decrypt single file from backup of my nextcloud server (file encryption enabled)

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face: is for home/non-enterprise users. If you’re running a business, paid support can be accessed via where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:


Or for longer, use three backticks above and below the code snippet:


Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version: 14.0.4
Default encryption module version: 2.2.0

The issue you are facing:
I’m missing a file that was uploaded to my nextcloud (possibly deleted). All files are encrypted by the “Default encryption module”. I have a complete server and MySQL backup and could restore the missing file. Is there a way to decrypt a single restored file without restoring the complete server?

@psar did you manage to decrypt the files from your backup? I have a similar issue, Nextcloud sync has overwritten some folders when I turned on a old desktop. Fortunately, I have the backup of all files and keys but not sure how to decrypt the files.

I’m sorry but I did not find a simple solution to restore a single file in 2019. I think it should be possible somehow but I did not spent much time to try it. In the meantime there is maybe a simple way to decrypt single files. Good luck.

Yes you can with GitHub - syseleven/nextcloud-tools: This project contains tools to operate Nextcloud.