Version 1.10.0 : New stable version with critical security fixes
Moderator: Moderators
Re: Version 1.10.0 : New stable version with critical security fixes
If you go to the Reboot menu and reboot, is it expected that the day's bandwidth tally resets? I thought it used to be retained before this release.
Re: Version 1.10.0 : New stable version with critical security fixes
I think it writes to the flash every 4 hours?rseiler wrote:If you go to the Reboot menu and reboot, is it expected that the day's bandwidth tally resets? I thought it used to be retained before this release.
https://www.gargoyle-router.com/wiki/do ... _the_flash
Re: Version 1.10.0 : New stable version with critical security fixes
Yes, I think so too, but that would be for unplanned reboots (power loss). I don't think it's working either though, since daily BW resets to zero any way you reboot. Worst-case should be from 4 hours ago. The page you linked to shows "backup_script," which doesn't seem to exist by that name (searched with WinSCP). Perhaps it's hidden in some way.ispyisail wrote:I think it writes to the flash every 4 hours?
https://www.gargoyle-router.com/wiki/do ... _the_flash
For planned reboots, the source of the reboot page suggests that reboot.sh is executed before the reboot. It contains, among other things, the "backup_quotas" command, which also doesn't seem to exist by that name. Perhaps also hidden, but without being able to view it, it's a little hard to tell what it's supposed to do.
My memory suggests though that there's no way things used to reset to zero.
Re: Version 1.10.0 : New stable version with critical security fixes
Backup_quotas is a valid shell command. It’s a program not a script.
I think it is in /usr/bin or /sbin
I think it is in /usr/bin or /sbin
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.
Please be respectful when posting. I do this in my free time on a volunteer basis.
Re: Version 1.10.0 : New stable version with critical security fixes
The information data on the linked page is actually outdated. Both commands can be found in crontab's tasks, which contains the following:rseiler wrote:The page you linked to shows "backup_script"/"backup_quotas" command which doesn't seem to exist by that name (searched with WinSCP). Perhaps it's hidden in some way.
Code: Select all
0 0,4,8,12,16,20 * * * /usr/bin/backup_quotas >/dev/null 2>&1
0 0,4,8,12,16,20 * * * /tmp/bw_backup/do_bw_backup.sh
Code: Select all
0 0,4,8,12,16,20 * * * /usr/bin/backup_quotas >/dev/null 2>&1
0 0,4,8,12,16,20 * * * /tmp/do_webmon_backup.sh
0 0,4,8,12,16,20 * * * /tmp/bw_backup/do_bw_backup.sh
TP-Link Archer C7 v2 - Gargoyle 1.12.X
TP-Link WR842ND v2 - Gargoyle 1.10.X
TP-Link RE450 AC v2 - Stock FW 1.0.4
TP-Link WA850RE v1.2 - LEDE 17.01.1
TP-Link WR842ND v2 - Gargoyle 1.10.X
TP-Link RE450 AC v2 - Stock FW 1.0.4
TP-Link WA850RE v1.2 - LEDE 17.01.1
Re: Version 1.10.0 : New stable version with critical security fixes
Looking in /etc/crontabs/root on mine, the relevant lines are:d3fz wrote:Code: Select all
0 0,4,8,12,16,20 * * * /usr/bin/backup_quotas >/dev/null 2>&1 0 0,4,8,12,16,20 * * * /tmp/bw_backup/do_bw_backup.sh
Code: Select all
0 0,4,8,12,16,20 * * * /tmp/do_webmon_backup.sh
0 0,4,8,12,16,20 * * * /tmp/bw_backup/do_bw_backup.sh
I didn't find backup_quotas earlier because when searching in Linux, apparently you don't want to search on something like "backup*.*" if what you want to find might not have an extension. Unlike DOS/Windows. Anyway, there it is in /usr/bin.
If it's meant to only backup quotas, then that would explain why executing a planned reboot (which invokes backup_quotas) does nothing for BW saving.
In that case, it would come down to the one that runs every 4 hours, do_bw_backup.sh. Can anyone confirm that today's BW (not past days) actually survives reboot, assuming you've had the router up for > 4 hours and have used BW in that time?
Re: Version 1.10.0 : New stable version with critical security fixes
What difference you're referring to ?rseiler wrote:I wonder why the difference?Code: Select all
0 0,4,8,12,16,20 * * * /tmp/do_webmon_backup.sh 0 0,4,8,12,16,20 * * * /tmp/bw_backup/do_bw_backup.sh
TP-Link Archer C7 v2 - Gargoyle 1.12.X
TP-Link WR842ND v2 - Gargoyle 1.10.X
TP-Link RE450 AC v2 - Stock FW 1.0.4
TP-Link WA850RE v1.2 - LEDE 17.01.1
TP-Link WR842ND v2 - Gargoyle 1.10.X
TP-Link RE450 AC v2 - Stock FW 1.0.4
TP-Link WA850RE v1.2 - LEDE 17.01.1
Re: Version 1.10.0 : New stable version with critical security fixes
Our first lines are completely different.d3fz wrote:What difference you're referring to ?
Re: Version 1.10.0 : New stable version with critical security fixes
Do you use Quotas? This line only shows on crontab if you have at least one quota rule defined, but not necessarily active/enabled.
Code: Select all
0 0,4,8,12,16,20 * * * /usr/bin/backup_quotas >/dev/null 2>&1
TP-Link Archer C7 v2 - Gargoyle 1.12.X
TP-Link WR842ND v2 - Gargoyle 1.10.X
TP-Link RE450 AC v2 - Stock FW 1.0.4
TP-Link WA850RE v1.2 - LEDE 17.01.1
TP-Link WR842ND v2 - Gargoyle 1.10.X
TP-Link RE450 AC v2 - Stock FW 1.0.4
TP-Link WA850RE v1.2 - LEDE 17.01.1
Re: Version 1.10.0 : New stable version with critical security fixes
I don't, so that explains it.d3fz wrote:Do you use Quotas? This line only shows on crontab if you have at least one quota rule defined, but not necessarily active/enabled.
And the line of mine that you're missing, now that I think about it, suggests that I have Web monitoring enabled...and sure enough, the UI says that I do. I've never enabled it, but I have seen it enable itself before, and I wonder how long that it's been enabled this time. I'll have to keep an eye on it.
Now I only have one line in root related to what we're talking about.