I have removed a snapshot that I don’t need anymore and now I want to clean the chunks from storage. I’m running the WebUI docker (webUI version 1.7.2, CLI 3.1.0) on Unraid. I understand I need to run duplicacy prune -exhaustive
but I’m hitting 2 roadblocks. First, getting credentials:
When setting up the WebUI, I selected encryption and I don’t have a copy of the b2 id and key unencrypted. I am attempting to run duplicacy-web -print-credentials
to get those pieces of information so I can attempt to prune but when I run duplicacy-web -print-credentials
I receive the following message:
/config # duplicacy_web -print-credentials
Duplicacy Web Edition 1.7.2 (1B2557)
Can’t start the web server at 127.0.0.1:3875: listen tcp 127.0.0.1:3875: bind: address already in use
How do I run the duplicacy-web -print-credentials
command to get the credentials when I receive the above error message?
Second: when attempting to run duplicacy_linux_x64_3.1.0 prune -all
, I receive the following message:
/config/bin # ./duplicacy_linux_x64_3.1.0 prune -all
Failed to read the preference file from repository /config/bin: open /config/bin/.duplicacy/preferences: no such file or directory
Correctly, the .duplicacy folder within /config/bin does not have any files. There are various “settings” files one directory up in /config but I receive the same error when I run ./bin/duplicacy_linux_x64_3.1.0 prune -all
from the /config directory. What “preferences” is the duplicacy command looking for and how I do point the command at those files?
After this - to sanity check myself - I believe I’ll need to do the following:
- run
duplicacy-web -print-credentials
and record the credentials - run
duplicacy_linux_x64_3.1.0 init <snapshot ID> <storage URL>
to initialize the storage - run ‘duplicacy_linux_x64_3.1.0 prune -exhaustive’ to remove chunks associated with the now-deleted snapshot, presuming I can also find the preferences that the duplicacy command wants.
Any and all help is appreciated as this is the first time I’m trying to interact with the CLI to do anything.