Re: this command line interface is deprecated

Wayne Sallee <[email protected]> Sat, 15 Jul 2023 15:17:43 -0400
Newsgroups gmane.comp.sysutils.backup.rdiff-backup.general
Message-ID <[email protected]>

-------- Original Message --------
*Subject: *  Re: this command line interface is deprecated (resent)
*From: *     Ericzolf <[email protected]>
*To: *         Rdiff-backup-users <[email protected]>
*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
[email protected]
http://www.WayneSallee.com