Recover B2 storage password, reinitialize storage, or start over?

OK, successfully set up Duplicacy on Computer 1 and backed up files files to a B2 bucket using the Web UI. Then tried to test a restore on Computer 2. When I try to create the B2 storage on Computer 2 (using appropriate Key ID and Application Key), I get asked for the storage password. I realize I don’t have it. (I used Firefox’s suggested strong password when I created the storage in Duplicacy, and perhaps forgot to have Firefox save the password, so the only password I have is the Web UI password.)

How do I fix this?

  • I see that the password is stored encrypted in duplicacy.json. Can I recover the storage password in plaintext using the Web UI password?
  • I see a -reset-passwords option on the list command (List command details). Can I use this to change the storage password? Do I need the old password to do this?
  • If recovering or resetting the password isn’t an option, can I clear out the bucket and reinitialize it with a new password?

The last question is probably trivia, because at that point, it’s probably easiest to just delete the bucket and recreate it. Either way I have to do a new data upload, as the old data is unrecoverable.

Let me know if there is anything I haven’t thought of.

Try this

1 Like

That worked! Thank you!

As a note for anyone else who finds this thread:

  • I did not have to set the HOME environment variable, as discussed later in the linked thread. I just ran duplicacy_web_linux_x64 -print-credentials in the same user account that set up the storage and backups.
  • When I ran the backup, the credentials were printed to the terminal.

The output looked like:

Env: DUPLICACY_<STORAGE-NAME>_B2_ID=xxxxxxxxxxxxxxxxxxxxxxxx
Env: DUPLICACY_<STORAGE-NAME>_B2_KEY=xxxxxxxxxxxxxxxxxxxxxxxx
Env: DUPLICACY_<STORAGE-NAME>_PASSWORD=xxxxxxxxxxxxxxxxxxxxxxxx
1 Like