gilbertchen / duplicacy

A new generation cloud backup tool
https://duplicacy.com
Other
5.24k stars 338 forks source link

asking for storage password when shouldn't #667

Open andrew521 opened 6 months ago

andrew521 commented 6 months ago

duplicacy_linux_x64_3.2.3 set up for rsa, no storage password set.

$ cat .duplicacy/preferences
[
    {
        "name": "default",
        "id": "data-lx",
        "repository": "",
        "storage": "/media/....../data-lx",
        "encrypted": true,
        "no_backup": false,
        "no_restore": false,
        "nobackup_file": "",
        "keys": {},
        "filters": "",
        "exclude_by_attribute": false
    }
]
$ duplicacy -d info -e /media/....../data-lx/
Reading the environment variable DUPLICACY_PASSWORD
Enter the storage password:                                         <<<< here, I just hit enter
Chunk read levels: [1], write level: 1
Compression level: 100
Average chunk size: 4194304
Maximum chunk size: 16777216
Minimum chunk size: 1048576
Chunk seed: 6475706c6963616379
Hash key: 6475706c6963616379
ID key: 6475706c6963616379
RSA public key: -----BEGIN PUBLIC KEY-----
...
-----END PUBLIC KEY-----

data-lx
gene1wood commented 5 months ago

The reason for this is that the duplicacy info command can be run from any location, even a computer that has no duplicacy repository on it. It only requires pointing to the storage URL that you want to query. As a result, it's not looking for a preferences file in a repository.