By default,Documentation Index
Fetch the complete documentation index at: https://mintlify.com/msimerson/maxmind-geolite-mirror/llms.txt
Use this file to discover all available pages before exploring further.
maxmind-geolite-mirror writes all downloaded .mmdb files to /usr/local/share/GeoIP/. This path works well on most Linux and macOS servers where the directory is writable by the process user, and it is the conventional location that many GeoIP-aware applications expect. If that path is unavailable — for example in a container, a shared hosting environment, or a developer workstation — you can point the tool at any other directory using the MAXMIND_DB_DIR environment variable.
Default path
The default storage directory is defined inlib/config.js:
MAXMIND_DB_DIR is not set, every database file is written to /usr/local/share/GeoIP/.
Overriding the directory
SetMAXMIND_DB_DIR to any absolute path before running the command:
.mmdb files into the specified directory.
Creating the directory
The tool does not create the directory automatically. Make sure the target path exists before running the mirror:The process running
maxmind-geolite-mirror must have read and write permission on the target directory. If the directory is owned by another user, adjust permissions with chmod or chown before running the tool.Trailing slash convention
config.js appends the local filename directly to dbDir without inserting a separator:
dbDir must end with a /. The built-in default already includes the trailing slash. If you set MAXMIND_DB_DIR, include the trailing slash yourself:
/home/example/maxmind-dbGeoLite2-Country.mmdb, which is almost certainly not what you want.