Skip to content

Commit

Permalink
docs: Add FAQ discussing choice of encryption mode, fixes borgbackup#…
Browse files Browse the repository at this point in the history
  • Loading branch information
fantasya-pbem committed Aug 9, 2020
1 parent e15f754 commit 4ec2bb8
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions docs/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,43 @@ into the repository.
Yes, as an attacker with access to the remote server could delete (or
otherwise make unavailable) all your backups.

Which encryption mode is the safest / should I choose?
------------------------------------------------------

This question is impossible to answer in a simple way, because there is a bunch
of different aspects that need to be considered. Availability, confidentiality
and integrity take influence on how complex or comfortable your backup process
can be designed.

1. Do you want full automation?

If you choose password protection for encryption keys, you will have to store
the plain password somewhere for fully automated backups. If you have several
backup repositories, it is generally safer to have individual passwords.

2. Do you trust the backup server?

In repokey mode the key is stored in the repo and could be stolen by an
attacker. In keyfile mode the key never leaves the backup client.

3. Do you trust the backup client?

In keyfile mode the key is stored on the client and could be stolen by other
users. Password protection makes stealing the key useless.

4. Can you afford to loose the backup repo?

Can you restore a corrupted or lost repo? If not, there is no point in storing
the keyfile on the client separate from the repo.

5. Do you mind securing your keyfile?

This comment has been minimized.

Copy link
@deermo

deermo Aug 15, 2020

In the issue, it was mentioned that backing up the keyfile should be done in both repokey and keyfile mode, which I felt as a very valuable recommendation and did not consider before. Maybe this is worth adding to the FAQ?


If you loose your keyfile, the backup repo is lost. You may not want to store
copies of the key at other places and choose repokey mode.

The safest choice may be password-protected keyfile mode running interactively
and storing the keyfile on USB stick.

How can I protect against a hacked backup client?
-------------------------------------------------

Expand Down

0 comments on commit 4ec2bb8

Please sign in to comment.