|
| 1 | +--- |
| 2 | +id: vault-recovery |
| 3 | +title: Vault Recovery |
| 4 | +sidebar_position: 20 |
| 5 | +--- |
| 6 | + |
| 7 | +# Vault Recovery |
| 8 | + |
| 9 | +If a vault cannot be added to Cryptomator or opened from inside the app anymore, you can use the Vault Recovery feature to unlock it again. |
| 10 | + |
| 11 | +:::note |
| 12 | +Vault Recovery does not restore your encrypted files. |
| 13 | +It only recreates missing configuration files such as `vault.cryptomator` in order for Cryptomator to recognize and unlock your vault again. |
| 14 | +::: |
| 15 | + |
| 16 | +It helps with the following scenarios: |
| 17 | + |
| 18 | +1. The masterkey file is missing or damaged - [`Recover Masterkey file`](#recover-masterkey-file) |
| 19 | +1. The vault config file is missing or damaged - [`Recover Vault config file`](#recover-vault-config) |
| 20 | +1. The masterkey and the vault config files are missing or damaged - [`Recover Masterkey and Vault config files`](#recover-full) |
| 21 | + |
| 22 | +If the damaged vault has not yet been added to Cryptomator, you start the recovery during the import process, see [`Add a vault with missing config files and restore them`](#add-recover-vault). |
| 23 | + |
| 24 | +:::warning |
| 25 | +Recovery of missing files is only supported starting with Vault Format 8 (introduced in Cryptomator 1.6.0). |
| 26 | +Vaults created with older formats (e.g., Vault Format 7 or earlier) are not compatible with these recovery options. |
| 27 | +For details, see the [Vault Format History](/docs/misc/vault-format-history.md). |
| 28 | +::: |
| 29 | + |
| 30 | +## Recover Masterkey file {#recover-masterkey-file} |
| 31 | + |
| 32 | +If the file `masterkey.cryptomator` is missing from your vault folder, Cryptomator will still recognize the folder as a normal vault. |
| 33 | + |
| 34 | +When you try to unlock the vault, a dialog appears saying “Masterkey file not found.” |
| 35 | + |
| 36 | +In this dialog, you can: |
| 37 | +- `Choose` a masterkey file manually, if it was stored outside the vault folder. |
| 38 | +- Or check the option “Restore the masterkey file instead” and click `Restore`. |
| 39 | + |
| 40 | +For the latter case, you need the vault recovery key to restore the masterkey file. |
| 41 | +You’ll be guided through the recovery process and on success, you can unlock the vault as usual. |
| 42 | + |
| 43 | +## Recover Vault config file {#recover-vault-config} |
| 44 | + |
| 45 | +If the file `vault.cryptomator` is missing, Cryptomator can recreate it using either your vault password or your recovery key. |
| 46 | + |
| 47 | +In the vault list, the vault is marked with an exclamation mark. |
| 48 | +In Vault Details, you’ll see `Vault config is missing.`. |
| 49 | +Here you can click `Restore vault config` to start the recovery process. |
| 50 | + |
| 51 | +You either need the Recovery Key or the vault password to restore the vault config file. |
| 52 | +You’ll be guided through the process and on success, you can open the vault as usual. |
| 53 | + |
| 54 | +## Recover Masterkey and Vault config files {#recover-full} |
| 55 | +:::note |
| 56 | +If the vault is created with Cryptomator Hub, you can’t restore the missing config files yourself. |
| 57 | +Please contact the vault owner, who can recreate the configuration file for you. |
| 58 | +::: |
| 59 | + |
| 60 | +If both config files – `masterkey.cryptomator` and `vault.cryptomator` – are missing, Cryptomator can restore them using your recovery key. |
| 61 | + |
| 62 | +In the vault list, the vault is marked with an exclamation mark. |
| 63 | +In Vault Details, you’ll see `Vault config is missing.`. |
| 64 | +Here you can click “Restore vault config” to start the recovery process. |
| 65 | + |
| 66 | +You need the Recovery Key to restore the vault config file. |
| 67 | +You’ll be guided through the process and on success, you can open the vault as usual. |
| 68 | + |
| 69 | +## Add a vault with missing config files and restore them {#add-recover-vault} |
| 70 | + |
| 71 | +If a vault has no configuration files and has not yet been added to Cryptomator, you recover it during the import process. |
| 72 | + |
| 73 | +Open the main window and click the plus `+` button. |
| 74 | +In the context menu, choose `Recover Existing Vault…`. |
| 75 | + |
| 76 | +Then select the vault directory you want to recover. |
| 77 | +Depending on which configuration files are missing, Cryptomator picks the right recovery options and will guide you through the same steps as described above. |
| 78 | + |
| 79 | +After the process completes, the restored vault will be added to your vault list automatically. |
0 commit comments