Is there a way of transferring user quotas from one machine to another? Where does the quota get stored? Non of the scarce documentation for the quota commands tells this. Apparently it can't be in the aquota.* files since I can repquota without them. Or does it get saved in some humanly unreadable filesystem information?
Kai
I think you are going to have to use repquota and quotaset and a bit of scripting.
If you want I can supply php code which I use to read the output of repquota. This is designed for maintaining user accounts but would be easily modified for you needs.
John.
Kai Schaetzl wrote:
Is there a way of transferring user quotas from one machine to another? Where does the quota get stored? Non of the scarce documentation for the quota commands tells this. Apparently it can't be in the aquota.* files since I can repquota without them. Or does it get saved in some humanly unreadable filesystem information?
Kai
John Newbigin wrote on Fri, 24 Mar 2006 09:20:13 +1100:
I think you are going to have to use repquota and quotaset and a bit of scripting.
I feared that ;-) Where the heck do they save this?
If you want I can supply php code which I use to read the output of repquota. This is designed for maintaining user accounts but would be easily modified for you needs.
Thanks, I'd usually say "yes, please", but I prefer Perl for shell scripting. The problem isn't the repquota but edquota of existing users, anyway. It's difficult to automate this.
Kai