Re: [Dar-support] Only one option of -c -d -t -l -C -x or -+ is allowed
For full, incremental, compressed and encrypted backups or archives
Brought to you by:
edrusb
|
From: Denis C. <dar...@fr...> - 2021-12-16 20:13:00
|
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 |