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 18/11/2020 18:46, VA wrote:
> Denis,
>
> Thanks for your response.

OK, I have found the issue. You can grab the new
dar64-2.6.13-win64.zip (and its signature) at
https://dar.dm3c.org/dar.linux.free.fr/Releases/Windows64bits/

The old package of same name has been suffixed with .old I will update
it on sourceforge when you'll confirm it also works for you.

If you extract the zip file as is, and do not rename the directory it
creates, the dar.exe will fetch the etc/darrc from within this
directory, which of course you can modify and adapt.

You can extract the zip package anywhere under windows, but if you
rename the directory where dar.exe is located it will still look for
the darrc file in <dir where is dar.exe>\..\dar64-2.6.13-win64\etc

Let me know whether this works for you too with this new package

I could do else, but it would require users to copy the etc directory
outside the directory created from the zip archive, and darrc would
not be read "out of the box"...

so there is a choice to take:
out of the box darrc but at each dar upgrade you have to pay attention
to copy your customized darrc to the new dar version.

An alternative would be to have dar.exe looking for ..\etc\darrc  file.
This way, if you updade your system with a new dar64...zip extracted
under the same directory and in that same directory have your
customized etc\darrc you would not have to do anything else. You could
even have two different version of dar using the same darrc...  but
darrc would not be read "out of the box" -> need to move etc directory
to the parent directory.

If you have better idea, let me know.

>
>> In the meanwhile you still have -B option to point to the darrc
>> file, and this works according to the tests I did.
>
> Well, I am setting a machine for backup with DarGUI
> (https://dargui.sourceforge.io/), and the application does not
> allow to specify additional scripts, but does allow to read config
> files $HOME/.darrc and /etc/darrc.

OK, so this should work better with DarGUI :)

>
> As I described originally I was not able to use /etc/darrc. I also
> had a problem with $HOME/.darrc, as I figured out because of $HOME
> is not set in standalone cygwin.dll application. I was able to make
> dar started by dargui to read .darrc if I would set the HOME
> environment variable for the account, which I would prefer not to
> do. Finally I created .bat file for starting DarGUI that first sets
> HOME variable to directory containing .darrc and then launches
> DarGUI.exe
>
> So basically I achieved what I wanted, but it certainly would be
> nicer if the config files would automatically load on windows from
> some sane predefined location. So I will be looking forward for any
> fixes that you might come up with.

You did good reporting that problem, as some other may hit it and dar
was not properly build for windows/cygwin about that point.

Thanks for your feedback!

>
> Thanks, Vladimir
>

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

iQIzBAEBCgAdFiEEOzEprx3d76WjfYGPCDGwvQPYsYIFAl+1eSwACgkQCDGwvQPY
sYJpRhAAiQHdm0mpy6UrE/viWJZYdYcWMa0ISw4uozV+pry91cjlbfNFueuJyY+9
SZugyJEqRvlUi3pwODR0fpoBqwG1unTGBsqOYVCou4rkEs9JkUnySDBrMTBwITBS
+GRXrbOVVSs4ybUZ2ARFuPMb4AI+6f+BHNmEMpswbJGdJ6S8f7GddduPFap90Esn
88rrln615Xo7Bp+hE6qhpphORR7/T5edKbHOGdxlaMvzK6cx0/MwsDWXsCdp5pcq
zIaK6YA5qbOIRa6e3JzMvu+XPbAupqR/mQs3W2Hn9nNNoRnjeuAvfbIWALAsxGCa
+tK+uEb36SheFDIvohjhllX5ut2eN34raLZ7BRjNARK7YSptByh1Q/JHmLiIqzku
ccYSKYTajwW3FUI/f0LvYHOrGGl54IjDHj9A5b454koaDROv1ynYdHbuTs6ZFddl
dxKyfyETuHOhDW/rUOOscih5R/hvgCqMyNfvd7kjZXsCWQlTnxpNaBjx0WeKgWVy
2b4XEGJdqhATfEC7nERn2KHvSS0zQqgxyjd6RSrFEkoU64pyiL+OFACotkmA2cuJ
17MS3HfXtxJMcUWSprw8j1Qy15g/F+74DAADrAWREirOfLgcpLfiP4HSVHX2hx3O
eGHpUtPDMGpYwORKTX5+02hxaZe+G4OTI7VY9PxTf/QQ4KQFYsk=
=0LxG
-----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.