How does encryption work?

Using web GUI, I created a new B2 storage and I entered an encryption password.
I created a test backup folder it ran ok.
I tried to restore files from it but it didn’t ask for a password.

Is this expected behavior? In what use case will I have to enter the encryption password? Thanks.

When you create a new repository which points to the same storage.

Ok I now tried doing the ff.:

  • Go to Backup > Enter new folder > Select existing storage (the one with encryption) > Enter new backup ID.

  • I ran backups

  • I ran restore

Still it didn’t ask me for an encryption password in any of the above steps. Am I missing something?

When you initially add the storage, it asks you for the password used for encryption. The password you enter for the storage is itself encrypted and stored in the duplicacy.json file.

From then on, the encrypted password is used. If you start using a new machine, then you’ll need to re-enter the storage encryption password.

In this case, it doesn’t need to ask for the password again because it’s an existing storage.

3 Likes