Skip to main content

Why

The existing clamdownloader.pl script does not have any error correction it simply bails out if a downloaded file is not valid and is unable to retry different mirrors if one fails.

This script will retry if a download fails with an http code that is not 404, it will connect to another mirror if retries fail or file not found or if the downloaded file is invalid.

It has options to set the locations for the working and mirror directory as well as user/group ownership for the downloaded files. It uses locking to prevent multiple instances from running at the same time.

Requirements

Usage

$ clamavmirror -h

Usage: clamavmirror [options]

Options:
  -h, --help            show this help message and exit
  -a HOSTNAME, --hostname=HOSTNAME
                        ClamAV source server hostname
  -r TXTRECORD, --text-record=TXTRECORD
                        ClamAV Updates TXT record
  -w WORKDIR, --work-directory=WORKDIR
                        Working directory
  -d MIRRORDIR, --mirror-directory=MIRRORDIR
                        The mirror directory
  -u USER, --user=USER  Change file owner to this user
  -g GROUP, --group=GROUP
                        Change file group to this group
  -l LOCKDIR, --locks-directory=LOCKDIR
                        Lock files directory

Example Usage

$ clamavmirror -w ~/tmp/clamavtmp/ \
-d ~/tmp/clamavmirror/ -u andrew -g staff -a db.za.clamav.net \
-l ~/Downloads/

Installation

Install from PyPi

pip install clamavmirror

Install from Githib

git clone https://github.com/akissa/clamavmirror.git
cd clamavmirror
python setup.py install

Contributing

  1. Fork it (https://github.com/akissa/clamavmirror/fork)

  2. Create your feature branch (git checkout -b my-new-feature)

  3. Commit your changes (git commit -am 'Add some feature')

  4. Push to the branch (git push origin my-new-feature)

  5. Create new Pull Request

License

All code is licensed under the MPLv2 License.

Metadata

Release files for clamavmirror 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for clamavmirror 0.0.4
File Size Uploaded Provenance Actions
clamavmirror-0.0.4.tar.bz2 8.3 kB Without provenance Details for clamavmirror-0.0.4.tar.bz2

Built distribution (wheel)

Table of built distributions (wheels) for clamavmirror 0.0.4
File Interpreter ABI Platform Actions
clamavmirror-0.0.4-py2-none-any.whl Python 2 none any Details for clamavmirror-0.0.4-py2-none-any.whl

Total release size: 13.1 kB

Release files / clamavmirror-0.0.4.tar.bz2

Download URL clamavmirror-0.0.4.tar.bz2
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
fe6d2b9a8c987e45fc0ff28c282c2858e5be1ee0d39b1a8b7b5dcbb91ba88787
BLAKE2b-256 checksum
How to use checksums
3f9cd9234fcbd95afcfba4be7a716a1109d029266aed110c30cab160bdafad4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.18.1 setuptools/38.5.1 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/2.7.15

Release files / clamavmirror-0.0.4-py2-none-any.whl

Download URL clamavmirror-0.0.4-py2-none-any.whl
Size 4.8 kB
Tags Python 2
SHA-256 checksum
How to use checksums
d5c74a40cbd30c0aa59e591236ad58dd8fb2d7ba9abf3c580e5121d31a690551
BLAKE2b-256 checksum
How to use checksums
aaf58470f2a9637678483a077f6c8abafe64bd40c66d1d4aa2cc24ec0e4ba5c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.18.1 setuptools/38.5.1 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/2.7.15

Security for clamavmirror 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page