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:
parent
feff8400ff
commit
3ccf356c11
1 changed files with 1 additions and 3 deletions
|
@ -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
|
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
|
/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
|
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/vnstat/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
|
|
||||||
curl -d "Vnstat backed up" 192.168.1.168:83/openwrt_backup
|
curl -d "Vnstat backed up" 192.168.1.168:83/openwrt_backup
|
Loading…
Add table
Add a link
Reference in a new issue