vnstat fix

Configured vnstat to save DB to external USB.

Per

https://openwrt.org/docs/guide-user/services/network_monitoring/vnstat

This was to solve the persistence issue. Now vnstat db should be backed up normally.
This commit is contained in:
kake26 2022-12-26 22:40:13 -06:00
parent feff8400ff
commit 3ccf356c11

View file

@ -19,7 +19,5 @@ curl -d "ETC backed up" 192.168.1.168:83/openwrt_backup
curl -d "Scripts backed up" 192.168.1.168:83/openwrt_backup
/usb/scripts/bin/restic -r sftp:pi@192.168.1.168:/storage/backup/openwrt backup /root
curl -d "Root backed up" 192.168.1.168:83/openwrt_backup
vnstat -i wan --exportdb > /usb/tmp/vnstat.db
/usb/scripts/bin/restic -r sftp:pi@192.168.1.168:/storage/backup/openwrt backup /usb/tmp/vnstat.db
rm /usb/tmp/vnstat.db
/usb/scripts/bin/restic -r sftp:pi@192.168.1.168:/storage/backup/openwrt backup /usb/vnstat/vnstat.db
curl -d "Vnstat backed up" 192.168.1.168:83/openwrt_backup