Re: Dar compression of .git/objects

Denis Corbin <[email protected]>
Newsgroups gmane.comp.sysutils.backup.dar.support
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 18/12/2019 02:11, C wrote:
> It's Christmas so perhaps that's another reason!
> 
> Denis - when you get back. Please help!
> 

Hi all,

Well, I've found why my message was not received by the mailing-list:
I have been unsubscribed for some reason (seem my provider rejected a
lot of mails from sourceforge wrongly assuming it was spam ... so
sourceforge finaly dropped my email from the mailing-list.

Here is what I had wrote december, the 13th:

- ---

you could setup a regular expression matching the git objects
filenames (use -ar to activate regex instead of glob expressions used
by default).
for example: -ar -Z "[0-9a-f]{38}"

But much more simple, you could also increase the minimum size below
which no compression is tried, using -m option
for example: -m 10k

- ---


> Thanks Richard for your help too.
> 
> Cheers, C
> 
> On Wed, Dec 18, 2019 at 12:34 AM Richard Gray 
> <[email protected] 
> <mailto:reallyratherrichard-Re5JQEeQqe8AvxtiuMwx3w-XMD5yJDbdMReXY1tMh2IBg@public.gmane.org>>
>
>
wrote:
>
>
>
It's
> 
in the hands of our developer, Denis now. He has been quiet on
> this one, so I hope he is just taking a quick skiing holiday or 
> something like that. Denis is the only one that can answer this 
> definitively in the short term.
> 
> On Tue, 17 Dec 2019, 12:15 C, 
> <forallthepublic+dar-Re5JQEeQqe8AvxtiuMwx3w-XMD5yJDbdMReXY1tMh2IBg@public.gmane.org 
> <mailto:forallthepublic%[email protected]>> wrote:
> 
> Hi Richard,
> 
> `-ar` is an interesting flag but it doesn't work in this case. The 
> regular expression still applies only to the file name I think.

Yes, this is correct, -Z and -Y only apply to filename not to path. It
does not make sense to compress differently a file based on the path
it has been placed in to my point of view.

The decision to compress a file or not should be based on its content,
which can be guessed based on the filename (usually matching the
filename extension).

there is also small files that do not worth compressing where from the
- --min-compr option



> 
> I downloaded and looked through the dar source code and the 
> relevant line (I think) is in:
> 
> src/libdar/filtre.cpp:879 
> if(compr_mask.*is_covered*(nom->*get_name()*) && 
> e_file->get_size()
>> = min_compr_size)
> 
> The `is_covered()` check is run on what looks like the file name 
> only (`nom->get_name()`). So perhaps that's why it doesn't work.
> 
> This is an interesting case, I think, because Git is now so widely 
> used that dar should be able to support it well. Do you not think 
> so?
> 
> Cheers C
> 
[...]


Thank you Richard for your support help!

Cheers,
Denis


-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEOzEprx3d76WjfYGPCDGwvQPYsYIFAl37yxEACgkQCDGwvQPY
sYJxmQ/9FRhXPJCK11oMj9XX8D+l+Rh+ya7/Q6voZsYZvOmscYewZvi6soFCA7XQ
HPYBVTOjwx2e6aLma9+zdJ1NcXVMAAo0zLveKPEKQnungA7/aRKuArV8Jw8tSIeY
8oDEtC1lPBD1lq/qRAbBSLqsNlki3E/6LZ/J8512oPWvyM2YEF0uTWuXOMDdH5qu
PxzDkGcbjphu0ISL6tk2W/TEcWC4zftgrxkNXDmoF4cPVBC6I5I81ZLzik6D1zA3
+0wxPIBuG5SQEmiZHV9U1XYmb00oBXku8LnpxM9jWb5G6hT4tLeLmYytnsNkc5ad
WwRFILuU262/6o+WQIxlPyt0Fd1SY2Oev2y1g/pQY5Raa4OpPUQMC5JVrLdUksLe
Us5jcH/rssqzdr1SdT2wLY9lYg/NpXxBjCfHfgqXaSH76jWqXyh3beK8aPBqSvw/
YaLpyxBa5Q9oxz8KRG5I+Vb/F1zxJ2L3uDVaBnOXI24JXY2+G1o4KREuKjTyIVdK
A6FueGsf1uTzsuCcSzd345xopzbN+mzgcdifwNvlGKptOgGqIKLNMPUvlCxKZbDL
BegFDzrXNbjQzG6lBqdNdFWJx9JNUc9ggKrpD/AXqJntQsLJm/vabS5MNPPtHlc/
VwZP1uqzAWIo4aJkLM47nXlawYJMMZKtuLm2tnkibRg+P9gnZuQ=
=VwYL
-----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.