Where are the data of quotas saved?

Report issues relating to bandwith monitoring, bandwidth quotas or QoS in this forum.

Moderator: Moderators

Tareq
Posts: 58
Joined: Mon Dec 14, 2015 6:56 am

Where are the data of quotas saved?

Post by Tareq »

Hi there ,
I need to change values of used quota for any user when I want, where are quotas data saved, and how can i change it Programmatically ?
TP-LINK WR841N. V8.4 | Gargoyle 1.9 | South Yemen

Lantis
Moderator
Posts: 6735
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Where are the data of quotas saved?

Post by Lantis »

Welcome back.
You knew the answer last year. Nothing has changed.
viewtopic.php?f=12&t=11973
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Tareq
Posts: 58
Joined: Mon Dec 14, 2015 6:56 am

Re: Where are the data of quotas saved?

Post by Tareq »

There is no answer or maybe I forgot, where is the answer?
TP-LINK WR841N. V8.4 | Gargoyle 1.9 | South Yemen

Lantis
Moderator
Posts: 6735
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Where are the data of quotas saved?

Post by Lantis »

/usr/data/quotas
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Tareq
Posts: 58
Joined: Mon Dec 14, 2015 6:56 am

Re: Where are the data of quotas saved?

Post by Tareq »

/usr/data/quotas, This path only saves data for recovery، but it is not the actual data, if you change the value nothing changes.
TP-LINK WR841N. V8.4 | Gargoyle 1.9 | South Yemen

Lantis
Moderator
Posts: 6735
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Where are the data of quotas saved?

Post by Lantis »

It's loaded into kernel memory for run time.
If you want to alter the value you should use

backup_quotas
Alter the number in /usr/data/quotas
restore_quotas

3 years you've been mucking around with quotas. What are you trying to achieve, and are you any closer to doing so?
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Tareq
Posts: 58
Joined: Mon Dec 14, 2015 6:56 am

Re: Where are the data of quotas saved?

Post by Tareq »

I am busy with my work and I use Gargoyle just to divide the internet between my family in home, and every now and then I need some things to do with my router, so I come here.

Thank you for answering my question.
TP-LINK WR841N. V8.4 | Gargoyle 1.9 | South Yemen

BENROFU
Posts: 30
Joined: Thu Jan 07, 2021 6:40 am
Location: Norway

Re: Where are the data of quotas saved?

Post by BENROFU »

Lantis wrote:
Sat Sep 28, 2019 6:10 am
It's loaded into kernel memory for run time.
If you want to alter the value you should use

backup_quotas
Alter the number in /usr/data/quotas
restore_quotas

3 years you've been mucking around with quotas. What are you trying to achieve, and are you any closer to doing so?
How to alter the number in quota ? I am not very familiar with SSH commands.

pkkrusty
Posts: 45
Joined: Mon Jan 13, 2020 4:41 pm

Re: Where are the data of quotas saved?

Post by pkkrusty »

I'm in the same boat as a relative newcomer to command line. when I call restore_quotas I get "ERRROR WAN not defined". I can scp individual quotas to and from my computer to change the values, but then stuck on how to get them into kernel memory.

Doing a little googling gets me to the gargoyle_firewall_util.sh code, and I see the initialize_quotas section, but I'm definitely not qualified to understand what's going on in the code.

Lantis
Moderator
Posts: 6735
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Where are the data of quotas saved?

Post by Lantis »

Can you post the full error log please?
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Post Reply