Support

Admin Tools

#30757 Is there a cron to update the GEOIP Database?

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by nicholas on Wednesday, 09 January 2019 02:02 CST

DaveOzric
Has there been any thought towards adding this feature? Or is it possible now?

Thanks

nicholas
Akeeba Staff
Manager
No, there is no such feature and no plans on implementing it... because it wouldn't make sense. The only thing the GeoIP database update does is download the new file from MaxMind and extract it to a specific location.

Assuming that your site's root is /var/www/mysite the following Bash (Linux command line) command would do the same thing:

wget "https://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.tar.gz" -O - | tar zx -C /var/www/mysite/plugins/system/akgeoip/db


The command can be read as follows. Use WGet, one of the two tools commonly used to download stuff through the command line, to download the compressed file https://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.tar.gz. Send its downloaded contents to the Linux standard output. Pipe (redirect) the standard output to tar, the most common Linux file archive tool. Instruct tar to treat the data it receives from standard output as a GZip compressed archive file and extract it. The extracted files are to be written under the directory /var/www/mysite/plugins/system/akgeoip/db.

CRON jobs let you run Bash commands on a schedule. Therefore you can just schedule the command I typed above. No need for us to reinvent a perfectly round wheel which has pretty much been in production since before I was born :)

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!