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:
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
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue