Re: Only one option of -c -d -t -l -C -x or -+ is allowed

Denis Corbin <[email protected]>
Newsgroups gmane.comp.sysutils.backup.dar.support
Message-ID <[email protected]>
On 16/12/2021 17:54, Jimmi Elofsson wrote:
> Hi Dennis,

Hi Jimmi

> 
> Another thing, I tried to remove the -c command and then I got this instead
> 
> root@Krang:/# dar -v -N -m 256 -y -s 600M -D -R "/srv"
> --exclude-from-file "/root/sh/dar-exclude.conf"
> User target found on command line or included file(s):
>     600M
> *Parse error: Given user target(s) could not be found: 600M *
> 
> FYI I can find /etc/darrc

OK found, this is due to the -y option.

The error message should be "Only one option of -c -d -t -l -C -x -+ or
-y is allowed", I will fix that.

-y option was deprecated since release 2.4.0 (June 2011)
was removed in release 2.5.0 (April 2015)
to be reintroduced for another feature and syntax with release 2.6.0
(December 2018).

Yes, it was necessary to consolidate all compression option under a
single option (-z) to be add new features, as all letters and symbols
available as option on command line are already used with dar.

if you want the former usage of -y (bzip2 compression) use -zbzip2

the above error message is explains by the fact -y needs an argument.
Thus here "-s" is not read as an option but as an argument to -y option.

As such 600M is not the argument of any option nor it has the face of a
option itself (it does not start by a dash) it is thus assumed to be a
"user target", but as "600M target is not defined, dar refuses to go
further not being able to fulfill the requested action.

> 
> Regards,
> 
> Jimmi

Cheers,
Denis
OpenPGP_signature (application/pgp-signature, 840 B) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.