tcql / maxmind-geolite-mirror

Mirror MaxMind GeoIP dbs from geolite.maxmind.com

Home Page:https://www.npmjs.com/package/maxmind-geolite-mirror

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status Coverage Status WinCI status Dependencies

maxmind-geolite-mirror

Mirror maxmind GeoIP databases from geolite.maxmind.com. Geolite version 1 and version 2 databases are mirrored.

Install

npm install -g maxmind-geolite-mirror
mkdir -p /usr/local/share/GeoIP
/usr/local/bin/maxmind-geolite-mirror

The last command will download all the databases to the GeoIP share directory.

Update databases

/usr/local/bin/maxmind-geolite-mirror

Set this to run once a week or so. Downloads will only happen if the remote file is newer than the local version.

Custom path to store maxmind database

If access to /usr/local/share/GeoIP is unavailable, the following environment variable is available: MAXMIND_DB_DIR. E.g.

export MAXMIND_DB_DIR=/home/example/maxmind-db

Contributions

Contributions are welcome, especially if they include tests. See DEVELOP.md

Contributors

  • Carl Banbury

badges

NPM

About

Mirror MaxMind GeoIP dbs from geolite.maxmind.com

https://www.npmjs.com/package/maxmind-geolite-mirror

License:MIT License


Languages

Language:JavaScript 100.0%