1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-15 03:51:51 +00:00

Backup vnstat every 2 hours

This commit is contained in:
Ycarus 2018-11-08 21:29:35 +01:00
parent 0653c9031b
commit dc82d670a4

View file

@ -22,8 +22,6 @@ if [ "$(uci -q get vnstat.@vnstat[-1].interface | grep wan1)" = "" ]; then
fi
fi
rm -f /tmp/luci-indexcache
if [ "$(grep -q vnstat_backup /etc/crontabs/root)" = "" ]; then
echo '* */12 * * * /etc/init.d/vnstat_backup backup' >> /etc/crontabs/root
fi
echo '0 */2 * * * /etc/init.d/vnstat_backup backup' > /etc/crontabs/root
exit 0