Thanks you for this one, since it was urgent to do something here, as you may seen we locked 4 hours on Sunday to develop our own script in PHP.
It works in synergy with Freshclam which fit with your needs.
We cannot spend more time this week on this problem, so please consider a grace for our user agent script.
De : Micah Snyder (micasnyd) <firstname.lastname@example.org>
Envoy? : lundi 8 mars 2021 06:53
? : ClamAV users ML <email@example.com>
Cc : Vincent GUESNARD <firstname.lastname@example.org>
Objet : RE: How force freshclamav to preserve cdiffs OR how generate cdiff since you forced us to use freshclamav on private mirrors
I spent my weekend crafting a tool that to download & maintain CVD's and CDIFF's for use in a private mirror.
The tool named "cvdupdate" and is available on:
- PyPI: https://pypi.org/project/cvdupdate/0.1.0/
- Github: https://github.com/micahsnyder/cvdupdate
**Disclaimer: This repository may be transferred to a new clamav org on Github in the nearish future.
Requirements: python 3.6 or newer, and an internet connection with DNS enabled.
You can install it with `pip3 install -user cvdupdate`, or `python3 -m pip install -user cvdupdate`
The simplest use case: install it and then run `cvd update`.
The CVDs and CDIFFs will be downloaded to `~/.cvdupdate/database`.
Run it as often as you need, in a cron job for example.
Please see the readme for more usage options/features.
In the future we may add an option to Freshclam to keep CDIFFs so you can use Freshclam for private mirror maintenance instead. But for now, this "cvdupdate" tool should work nicely.
Please ONLY use this tool to maintain private mirrors. DON'T use it for updating your regular clamav database. Use Freshclam instead for that.
I really hope this helps. Any feedback is welcome. You should be able to create Issues on the github repo if you find any problems.
Cisco Systems, Inc.
From: clamav-users <email@example.com<mailto:firstname.lastname@example.org>> On Behalf Of Vincent GUESNARD via clamav-users
Sent: Saturday, March 6, 2021 9:46 PM
To: 'email@example.com' <firstname.lastname@example.org<mailto:email@example.com>>
Cc: Vincent GUESNARD <firstname.lastname@example.org<mailto:email@example.com>>
Subject: [clamav-users] How force freshclamav to preserve cdiffs OR how generate cdiff since you forced us to use freshclamav on private mirrors
We perfectly understood your problems with bandwith and there is no problem here to ? hack ? freschclam to make our privates mirrors work again.
But please, help us since we do not want to replay 2018- with huge instabilisaties on public infrastructure of Clamav (we really want to preserve our private mirrors) AND we do not find anything about forcing freschclam to preserve cdiff.
So here is the question (Joel : that we post here since we think we are not alone to got this problem) :
How do we force freschclam to preserve cdiffs OR How can we generate cdiff (freshclam compliant) to make our private mirrors work again ?