Applications \ vnStat
vmStat is a tiny script which monitors your memory usage. vnStat is the network version which will log your bandwidth usage every 5 minutes.
$ sudo apt-get install vnstat
You have to run it once to create the database.
$ sudo vnstat -u -i eth0
Then start the service to start logging.
$ sudo service vnstat start