[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: this command line interface is deprecated
From: |
Wayne Sallee |
Subject: |
Re: this command line interface is deprecated |
Date: |
Sat, 15 Jul 2023 15:17:43 -0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 |
-------- Original Message --------
*Subject: * Re: this command line interface is deprecated (resent)
*From: * Ericzolf <ewl+rdiffbackup@lavar.de>
*To: * Rdiff-backup-users <rdiff-backup-users@nongnu.org>
*CC: *
*Date: * 2023-7-15 09:15 AM
> Hi,
>
> On 15/07/2023 13:33, Wayne Sallee wrote:
>> rdiff-backup --api-version 201 -v9 --print-statistics testingbackup
testingbackup-backup
>> usage: rdiff-backup [-h] [--api-version API_VERSION] [--current-time
CURRENT_TIME] [--force] [--fsync | --no-fsync]
>> [--null-separator] [--new | --no-new] [--chars-to-quote
CHARS] [--parsable-output]
>> [--remote-schema REMOTE_SCHEMA] [--remote-tempdir DIR_PATH] [--ssh-compression |
--no-ssh-compression]
>> [--tempdir DIR_PATH] [--terminal-verbosity
{0,1,2,3,4,5,6,7,8,9}] [--use-compatible-timestamps]
>> [-v {0,1,2,3,4,5,6,7,8,9}] [-V]
>>
{backup,calculate,compare,complete,info,list,regress,remove,restore,server,test,verify}
...
>> rdiff-backup: error: argument action: invalid choice: 'testingbackup' (choose from 'backup', 'calculate', 'compare',
'complete', 'info', 'list', 'regress', 'remove', 'restore', 'server', 'test', 'verify')
>>
>> But this works with api warning:
>> rdiff-backup -v9 --print-statistics testingbackup testingbackup-backup
>
> Yes, but if you use the new API, you also _must_ use the new CLI, where a command is mandatory, e.g. backup, with
something like:
>
> rdiff-backup -v9 --api-version 201 --print-statistics backup \
> testingbackup testingbackup-backup
>
> KR, Eric
>
>
rdiff-backup -v9 --api-version 201 --print-statistics backup testingbackup
testingbackup-backup
usage: rdiff-backup [-h] [--api-version API_VERSION] [--current-time
CURRENT_TIME] [--force] [--fsync | --no-fsync]
[--null-separator] [--new | --no-new] [--chars-to-quote
CHARS] [--parsable-output]
[--remote-schema REMOTE_SCHEMA] [--remote-tempdir DIR_PATH]
[--ssh-compression | --no-ssh-compression]
[--tempdir DIR_PATH] [--terminal-verbosity
{0,1,2,3,4,5,6,7,8,9}] [--use-compatible-timestamps]
[-v {0,1,2,3,4,5,6,7,8,9}] [-V]
{backup,calculate,compare,complete,info,list,regress,remove,restore,server,test,verify}
...
rdiff-backup: error: unrecognized arguments: --print-statistics
Wayne Sallee
Wayne@WayneSallee.com
http://www.WayneSallee.com