mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Backup vnstat every 2 hours
This commit is contained in:
parent
0653c9031b
commit
dc82d670a4
1 changed files with 1 additions and 3 deletions
|
@ -22,8 +22,6 @@ if [ "$(uci -q get vnstat.@vnstat[-1].interface | grep wan1)" = "" ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
rm -f /tmp/luci-indexcache
|
rm -f /tmp/luci-indexcache
|
||||||
if [ "$(grep -q vnstat_backup /etc/crontabs/root)" = "" ]; then
|
echo '0 */2 * * * /etc/init.d/vnstat_backup backup' > /etc/crontabs/root
|
||||||
echo '* */12 * * * /etc/init.d/vnstat_backup backup' >> /etc/crontabs/root
|
|
||||||
fi
|
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue