1834827 Members
2430 Online
110070 Solutions
New Discussion

Transferring quotas

 
Brian Kennedy
Occasional Advisor

Transferring quotas

Hi sysadmins!

My current fileserver is a Sun box, and I would like to transfer everything to a HP box, running under HPUX 11i. An external diskarray will store users' accounts.

My question is:
How could I transfer quotas from my Sun box to my HP box, NON INTERACTIVELY, using a script? I could actually use "edquota -p" but the fact is that quotas are generally different from each others...

Thank you very much.

Rgds,
/Brian
2 REPLIES 2
harry d brown jr
Honored Contributor

Re: Transferring quotas

Brian,

SCRIPT IT:


edquota hbrown <

live free or die
harry
Live Free or Die
Frederic Soriano
Honored Contributor

Re: Transferring quotas

Hi Brian,

If you know a bit of Perl, thanks to a little script, you can retrieve and set quotas using the 'Quotas.pm' module available at CPAN (http://search.cpan.org). There is a test.pl bundled with the module: it will help you doing the trick :o)

Wishing you luck,

Fred.