#!/bin/bash

set -xeuo pipefail

TARGET="/var/www/vnstat"

vnstati --output "$TARGET/summary.png" --summary
vnstati --output "$TARGET/top10.png" --top 10
vnstati --output "$TARGET/hours.png" --hoursgraph
vnstati --output "$TARGET/daily.png" --days 30
vnstati --output "$TARGET/monthly.png" --months 12
vnstati --output "$TARGET/yearly.png" --years