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

Posted in ‘Akeeba Admin Tools for Joomla!’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Tuesday, 08 January 2019 22:59 CST
Has there been any thought towards adding this feature? Or is it possible now?

Thanks
Custom Fields
Joomla! version (in x.y.z format) 3.9.1
PHP version (in x.y.z format) 7.1
Admin Tools version (x.y.z format) 5.2.1
 
DaveOzric
Wednesday, 09 January 2019 02:02 CST
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



Please keep in mind my timezone and cultural differences when reading my replies. Thank you!



nicholas
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.

Support Information

Working hours: Typically we work Monday to Friday, 9am to 7pm Cyprus timezone (EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets, but we cannot respond to them, outside of our working hours.

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!

Cookies Notification - Action required

This website uses cookies to provide user authentication and improve your user experience. Please indicate whether you consent to our site placing these cookies on your device. You can change your preference later, from the controls which will be made available to you at the bottom of every page of our site.