Page 1 of 1

Where are the data of quotas saved?

Posted: Tue Sep 24, 2019 11:49 am
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 ?

Re: Where are the data of quotas saved?

Posted: Tue Sep 24, 2019 4:49 pm
by Lantis
Welcome back.
You knew the answer last year. Nothing has changed.
viewtopic.php?f=12&t=11973

Re: Where are the data of quotas saved?

Posted: Fri Sep 27, 2019 2:00 pm
by Tareq
There is no answer or maybe I forgot, where is the answer?

Re: Where are the data of quotas saved?

Posted: Fri Sep 27, 2019 6:19 pm
by Lantis
/usr/data/quotas

Re: Where are the data of quotas saved?

Posted: Sat Sep 28, 2019 2:16 am
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.

Re: Where are the data of quotas saved?

Posted: Sat Sep 28, 2019 6:10 am
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?

Re: Where are the data of quotas saved?

Posted: Sat Sep 28, 2019 3:45 pm
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.

Re: Where are the data of quotas saved?

Posted: Fri Jan 08, 2021 8:05 pm
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.