Mirror maxmind GeoIP databases from geolite.maxmind.com
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.
/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.
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 are welcome, especially if they include tests and are in the form of squashed GitHub Pull Requests.
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