You can track it with iptables.
https://www.linux.com/training-tutorials/bandwidth-monitoring-iptables/
A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.
For Example
We welcome posts that include suggestions for good self-hosted alternatives to popular online services, how they are better, or how they give back control of your data. Also include hints and tips for less technical readers.
Useful Lists
You can track it with iptables.
https://www.linux.com/training-tutorials/bandwidth-monitoring-iptables/
I just have a cron job that runs "ifconfig | logger" once a week. When I want to know how much data has been sent or received, I subtract the RX bytes or TX bytes from the appropriately timestamped entries and divide by the time difference. Easy-peasy.