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