Skip to content
This repository has been archived by the owner on Jan 6, 2021. It is now read-only.

Latest commit

 

History

History
62 lines (41 loc) · 2.02 KB

README.md

File metadata and controls

62 lines (41 loc) · 2.02 KB

Build Status Dependencies Coverage Status WinCI status

NPM

maxmind-geolite-mirror

Mirror maxmind GeoIP databases from geolite.maxmind.com

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 and are in the form of squashed GitHub Pull Requests.

How to squash:

git remote add msimerson https://github.com/msimerson/maxmind-geolite-mirror.git
git rebase -i msimerson/master

Then change pick to s for all but the first commit and save changes. Then force push the squashed branch to your repo:

git push -f origin