From 3ccf356c11aa3b1038ebf753c6615ee3f71bf04f Mon Sep 17 00:00:00 2001 From: kake26 Date: Mon, 26 Dec 2022 22:40:13 -0600 Subject: [PATCH] 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. --- backup.bash | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/backup.bash b/backup.bash index 5234ee7..63963aa 100644 --- a/backup.bash +++ b/backup.bash @@ -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 \ No newline at end of file