bundlewrap/bundles/vnstat/files/generate-vnstati
Franziska Kunsmann 26c2be07cf
All checks were successful
bundlewrap/pipeline/head This commit looks good
bundles/vnstat: adjust vnstati calls for debian bullseye
2021-04-11 09:01:58 +02:00

16 lines
389 B
Bash

#!/bin/bash
TARGET=$1
if [[ -z "$TARGET" ]]
then
echo "Usage: $0 <TARGET_DIR>"
exit 1
fi
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