Ashus.ashus.net
GeoIP updater - Printable Version

+- Ashus.ashus.net (https://ashus.ashus.net)
+-- Forum: My creations (https://ashus.ashus.net/forum-3.html)
+--- Forum: Bash scripts (https://ashus.ashus.net/forum-17.html)
+--- Thread: GeoIP updater (/thread-73.html)



GeoIP updater - Ashus - 19.4.2008

A simple script meant to be launched via crontab once a month to keep your offline GeoIP database up-to-date.

Code:
#! /bin/bash

cd /usr/share/GeoIP

wget "http://www.maxmind.com/download/geoip/database/GeoIP.dat.gz" -O GeoIP.dat.gz
7z e -y GeoIP.dat.gz
rm GeoIP.dat.gz