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