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



On 16/11/2020 23:00, VA wrote:
> Hello,

Hi VA,

>
> I was trying to customize /etc/darrc file in downloaded windows
> binaries installation, but seems like the file is not read by dar.
> Here is how I tested it with the stock file trying to use target
> 'bell':
>
> C:\Users\vladimir>C:\bin\dar64-2.6.13-win64\dar.exe bell Parse
> error: Given user target(s) could not be found: bell

first, there was a bug in release 2.6.12 and probably a few other
releases before it, that lead dar to look for /darrc instead of
/etc/darrc (the default) or $sysconfdir/darrc when the variable
sysconfdir is manually set using --sysconfdir=<dir> or --prefix=<dir>
while runnning the ./configure script before compiling dar/libdar.

But, I did a test to be sure: creating a directory with a very
specific name "ABCDEFGHIJKL", then from its parent directory I backed
it up with dar:

> dar -c backup -g ABCDEFGHIJKL

then I change to a random directory and restored the backup to / with

"C:\...\path to dar\dar\dar.exe" -x ../path/to/backup -R /

I always get the ABCDEFGHIJKL directory created in the parent
directory of the one where is located the dar.exe binary.

However putting there an etc\darrc file does not let the "bell" target
being available... I must dig into that as it seems related to the way
dar binary has been built under Cygwin...

In the meanwhile you still have -B option to point to the darrc file,
and this works according to the tests I did.

>
> According to cygwin FAQ
> (https://www.cygwin.com/faq.html#faq.using.multiple-copies):
>
> 'Each Cygwin DLL on the machine constitutes a Cygwin installation,
> with the directory the Cygwin DLL resides in treated as "/bin", the
> parent directory as "/".'
>
> So I presume the /etc/darrc should be places in parent directory
> of dar.exe, but that did not work either, as well as moving it to
> root directory of the windows drive.

Yes, it should, but the path to darrc seems to not follow this rule
>
> Any advice?

let me a few days to find the time to dig into that, will be back to
you shortly

>
> Thanks, Vladimir
>

Cheers,
Denis
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEOzEprx3d76WjfYGPCDGwvQPYsYIFAl+0NHsACgkQCDGwvQPY
sYIRNA/+ICL2GX/0x7xz5HZCDOtc+IOdNMd3FG4QBvzn0+vbubABDJ3bupb0KahM
OHCbJWVACdnG/Va95CnhH2v1QAkGN2p3sBFwlmk7jJZOMUoimzxFigw3Fk9k+Tkc
CEBtRKPMl6MBm4HNSP8+hnhLc93jCCanhT9y+5lhz4VYjjGPCd9ydx2ecsjAuBvi
tBBF5dTzo7CnnuFF0tNDSveMJDZKgBuLi+LnZjyoFCDbw1xqcDGZF0yfxdoedD5m
NBlTy3J7LYnE7APV7ufFNJJc8O7W08mHZOY+qFPf7A/Gsh5l6W8nzRhgOmRaK+6V
1JpugzjO+Vecs3SggYTnVmqRfaIOO3mAQcUyV6uXeCYawfitPmgNjsN1OR1sDgtp
aSDbzjb8WI/Av8HLGt5GNW6PXkQATuIz4lPy4PyMmEvyibfYSl4z8XC5X1f1LCjq
i4oOy7grK58sPKzzmyJqpz0Xy9Plrb8sGJXOZxtu1PQtPkc/eNmPHn8bzSaIFd/G
VOa/uMTNBB5BLtvEdVfiNDW7Cwew9gXcybZWE5u5Ebpc+RBYR30Le6Kj0CCZEMPX
ErXiYjCzc2xyZ2XzGXPDJsYiofb2dWaADNf+CF4af5pH0u+wjHC6Kg9ybafILZOb
oOgWEhqDN2n3nX3ZnP00akQMmziNbQxbkbMC7lSJWmBLHdbTel8=
=6ANx
-----END PGP SIGNATURE-----
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.