Re: Location of darrc on windows
Denis Corbin <[email protected]>
| Newsgroups | gmane.comp.sysutils.backup.dar.support |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Hello Andy, this is the expected behavior: - - darrc (wherever it is installed in /etc /usr/etc /usr/local/etc or where you instruct it to be installed using the --prefix and/or - --sysconfdir option given to "./configure") is always read unless: - - a $HOME/.darrc is present and does not contain a -B option pointing to /etc/darrc /usr/etc/darrc or wherever it has been installed, - - -N option is provided on command-line or in an included file Passing -B option to dar does not change this behavor, it just adds more files to be read for configuration purposes (you can use several - -B options if you like and recursively also), you can also hopefully use the user targets defined in the official darrc from your dcf files. What you probably need is adding -N option in "mydir/mydarrc.dcf": this way you keep the default darrc unless you give mydarrc.dcf using a -B option. See also the DAR_DCF_PATH environment variable. Regards, Denis On 03/01/2021 14:41, [email protected] wrote: > Hello, I just updated dar to version 2.6.13 on my linux machine. I > think there may be a problem related to the darrc location. By > default it is installed in: /usr/etc/darrc > > I observe that the default file is read even if I pass (-B option) > a custom darrc. > > --- dar -c "..." -R "..." -g "..." -B "mydir/mydarrc.dcf" -v > Arguments read from /usr/etc/darrc :[<-WRONG!] --- > > I have to manually delete /usr/etc/darrc in order to get the proper > behavour: --- rm /usr/etc/darrc dar -c "..." -R "..." -g "..." -B > "mydir/mydarrc.dcf" -v User target found on command line or > included file(s):[<-OK!] --- > > I think that probably the -B option should have the priority over > the default file. > > Best regards, Andy > -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEOzEprx3d76WjfYGPCDGwvQPYsYIFAl/x1ngACgkQCDGwvQPY sYIcOhAAwzG36cqFay2MwKTUv1LHm9vY38Uh0zfbaxdMzEz/bgAIHjASe0WKB8ne zvLOcQfLpCV/5WQ56D4/lI+FJANfL0YHGL5zZdnzJyMox5hbWZb3LZmHNTXSQ1ya sKebfAt4z41oP3QqlA9IwE1p3lIKEmhVdSI6rkanaR40iOoQmLgHshQabX+AACEB qa4MvVLKBI8SrnxTpXpQ+D6Q1pK2p9IK+hOrcnTJUdHp7rAU/c5wThItsInft0HG cgQ+6VZQRQrnI3qpePihkCyz16qTf+KMaE6ry8bcJA54DERx+EnmRwdMxtw6RbFR Yo8sUGp15c7jes4LheiadZtYexh4AFkQG4pmrvRCaa+imadtVbbZkWo88rYLG9ID aXW60WyUBtruj+P9J0lAB48n14KFV3vOXeSe7n0aXnsVCw2nlmuWXjU/od0Gzo7M JmpRprh+uUJ+2zhl5SGU0ibTlto5Qb9McnvLUpchPtkB9s/jCIR4t+rBQBLmW4iy JMbLCX9ghP6Q3hJWVHsuaiiO0F2IlnEwm71Pplj3dNjodFCJ0ucjXgw/0xoSVoLu +jc5INlHESHRD8p0mr0IyX3Gu73FSjB57CY5CG2FR/QExzYdtM6/oJ0t510FowOu O+2yLASn2YOc2XO70jA+WBOHaE+fTRQvJAVpSaGfJS4ITi+fh8A= =Jmjp -----END PGP SIGNATURE-----