Repository navigation
Add restoring files from backup #176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| --- | ||
| id: common-errors | ||
| title: Common Errors | ||
| sidebar_position: 15 | ||
| sidebar_position: 16 | ||
| --- | ||
|
|
||
| # Common Errors | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| --- | ||
| id: error-handling | ||
| title: Error Handling | ||
| sidebar_position: 10 | ||
| sidebar_position: 11 | ||
| --- | ||
|
|
||
| # Error Handling | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| --- | ||
| id: network | ||
| title: Network Settings | ||
| sidebar_position: 13 | ||
| sidebar_position: 14 | ||
| --- | ||
|
|
||
| # Network Settings | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| --- | ||
| id: restoring-files-from-backup | ||
| title: Restoring Files from a Backup | ||
| sidebar_position: 8 | ||
| --- | ||
|
|
||
| # Restoring Files from a Backup | ||
|
|
||
| Cryptomator encrypts not only file names but also the directory structure of your vault (see [Encrypted File Names](/docs/desktop/encrypted-file-names.mdx)). | ||
| In a backup of the vault storage location, you therefore can't tell which encrypted file belongs to which cleartext file, especially if it sits deep in a subdirectory. | ||
|
|
||
| There are two ways to restore a file or folder: | ||
|
|
||
| 1. [Open the backup as a second vault](#open-backup-as-vault) - Recommended. Works at any nesting depth and also for files and folders that have already been deleted from the vault. | ||
| 2. [Restore a single encrypted file](#restore-single-encrypted-file) - Use this if the file still exists in the vault, you only need an older version of it, and your backup tool can restore individual files. | ||
|
|
||
| Both methods require Cryptomator for Windows, macOS, or Linux. | ||
|
|
||
| ## Open the Backup as a Second Vault {/* #open-backup-as-vault */} | ||
|
|
||
| 1. Restore the **complete** vault folder from the backup to a separate location. It must contain the `d` folder and the `vault.cryptomator` and/or `masterkey.cryptomator` file. | ||
| Do not restore it inside the existing vault folder or inside a cloud-synced folder. | ||
| 2. In Cryptomator, click the plus `+` button, choose [`Open Existing Vault…`](/docs/desktop/adding-vaults.mdx#open-an-existing-vault), and select the `vault.cryptomator` file of the restored copy. If only a `masterkey.cryptomator` file exists, select that instead. | ||
| The copy appears as an additional vault next to your original one. | ||
| 3. Unlock the copy. | ||
| For a password-based vault, use the password that was valid at the time of the backup. | ||
| For a [Cryptomator Hub](/docs/hub/introduction.mdx) vault, [unlock it through Hub](/docs/hub/user-guide/access-vault.mdx#unlocking-a-vault) as usual. | ||
| Unlock your original vault as well. | ||
| 4. In the unlocked copy, navigate to the file or folder you want to restore and copy it into your original vault. | ||
| 5. Lock the copy and [remove it from the vault list](/docs/desktop/vault-management.mdx#remove-vaults) by right-clicking it and choosing `Remove…`. | ||
| This only removes the list entry and doesn't delete any encrypted files. | ||
| You can then delete the restored vault folder manually. | ||
|
|
||
| ## Restore a Single Encrypted File {/* #restore-single-encrypted-file */} | ||
|
|
||
| 1. Unlock the vault and use [`Locate Encrypted File`](/docs/desktop/encrypted-file-names.mdx#locate-encrypted-file) on the file you want to restore. | ||
| Note the path of the encrypted file shown in the file manager. | ||
| 2. Lock the vault. | ||
| 3. With your backup tool, restore exactly that encrypted file to exactly the same path, overwriting the current one. | ||
| If the file ends up anywhere else, the vault won't recognize it, because its name is encrypted using the ID of its parent directory. | ||
| 4. Unlock the vault again. | ||
|
|
||
| :::note | ||
| If you use `Locate Encrypted File` on a folder, the file manager shows the folder's content directory under `d/`. | ||
| It only contains the files directly inside that folder. | ||
| Subfolders are stored as links (`dir.c9r`) to other directories under `d/`, so to restore a folder with subfolders, [open the backup as a second vault](#open-backup-as-vault). | ||
| ::: | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| --- | ||
| id: troubleshooting | ||
| title: Troubleshooting | ||
| sidebar_position: 14 | ||
| sidebar_position: 15 | ||
| --- | ||
|
|
||
| # Troubleshooting | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| --- | ||
| id: volume-type | ||
| title: Volume Types | ||
| sidebar_position: 8 | ||
| sidebar_position: 9 | ||
| --- | ||
|
|
||
| # Volume Types | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.