Pectojin / duplicati-client

A command line client for controlling the Duplicati Server
GNU Lesser General Public License v2.1
75 stars 20 forks source link

"duc run" and "duc get" show different command patterns #28

Closed wechsler42 closed 3 years ago

wechsler42 commented 3 years ago

Hi there, first of all thank you very much for providing duplicati-client.

I use version duplicati-client 0.6.3 beta with Duplicati v2.0.5.114-2.0.5.114_canary_2021-03-10 installed as a service on a Linux Mint box. Issuing: "duc get backup 2" it works as noted in README.md Issuing "duc run backup 2" it does not work as noted in the README.md Issuing "duc run 2" it works as intended. Perhaps I got something wrong from the README.md but I think there should not be a difference between the command pattern of "duc get" and "duc run".

Pectojin commented 3 years ago

Ah, good catch. I think I made a copy paste mistake in the README.

The CLI usage pattern is strongly inspired by kubectl, so I intentionally made it duc run ID (similar to how kubectl logs doesn't take a type only an identifier)

get/describe commands can access many different types, but run can only ever start a backup job, so if it was run backup ID it would be redundant.

Pectojin commented 3 years ago

I've updated the readme to correctly show duc run 1 which will hopefully prevent future confusion.