|
From: | Reio Remma |
Subject: | Re: New command line interface not backward compatible ? |
Date: | Fri, 28 Apr 2023 11:13:53 +0300 |
User-agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 |
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 messagerdiff-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 helpingHello! 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
[Prev in Thread] | Current Thread | [Next in Thread] |