Re: New command line interface not backward compatible ?
Derek Atkins <[email protected]> Fri, 28 Apr 2023 06:08:29 -0400
| Newsgroups | gmane.comp.sysutils.backup.rdiff-backup.general |
|---|---|
| Message-ID | <[email protected]> |
... And using a relative path with the name "test".. Which is a command. -derek Sent using my mobile device. Please excuse any typos. On April 28, 2023 04:14:43 Reio Remma <[email protected]> wrote: > On 28.04.2023 07:51, Eric Zolf wrote: >> Hi, >> >> `rdiff-backup -v5 docs /tmp/bak` works as expected for me. I tried a >> few variants and it always works. Fedora 38 with rdiff-backup 2.2.4 >> (as packaged). > > Uh oh. It seems my mistake was using a relative path for backup destination. > > Using an absolute path for destination made it work here as well, even > though the error implied a missing argument. > > rdiff-backup -v5 bin test > vs > rdiff-backup -v5 bin /tmp/bak > > Reio > > >> >> We also still use the old CLI a lot in our pipeline tests, so there >> must be another issue on your end. >> >> It looks like rdiff-backup doesn't find its action plugins. >> rdiff-backup --help should show at the end a list of those: >> >> possible actions: >> {backup,calculate,compare,complete,info,list,regress,remove,restore,server,test,verify} >> >> >> If not, something is wrong with your installation or (python) setup. >> >> KR, Eric >> >> On 27/04/2023 14:23, Reio Remma wrote: >>> On 27.04.2023 14:59, Patrik Dufresne wrote: >>>> Hello, >>>> >>>> I'm slowly migrating from v2.0 to v2.2 and I'm getting this error >>>> message >>>> >>>> rdiff-backup -v 5 /tmp /test >>>> [138] Failed to execute script 'rdiff-backup' due to unhandled >>>> exception! >>>> WARNING: this command line interface is deprecated and will disappear, >>>> start using the new one as described with '--new --help'. >>>> Traceback (most recent call last): >>>> File "rdiff-backup", line 8, in <module> >>>> File "rdiffbackup/run.py", line 37, in main >>>> File "rdiffbackup/run.py", line 72, in main_run >>>> KeyError: 'backup' >>>> >>>> I know there is a new command line interface since v2.2, but I >>>> thought it >>>> was backward compatible with v2.0. I'm probably missing something >>>> obvious. >>>> >>>> Thanks for helping >>> >>> Hello! >>> >>> As far as I can tell, the API is compatible, but CLI is new. >>> >>> Oddly I didn't get such an error with the same syntax, but: >>> >>> rdiff-backup: error: argument action: invalid choice: 'bin' (choose >>> from 'backup', 'calculate', 'compare', 'complete', 'info', 'list', >>> 'regress', 'remove', 'restore', 'server', 'test', 'verify') >>> >>> Running v2.2.4 here. >>> >>> Good luck! >>> Reio