cPanel Migration - Quota is set, but not will not configured

musti19

Well-Known Member
Jan 20, 2013
110
1
68
cPanel Access Level
Root Administrator
Hello,
im writing a migrationscript, where i set the quota
in quota file:

PHP:
/quota
with the content:
PHP:
200
for 200MB,
but if i execute /scripts/restorepkg the quota is then 0,unlimited.

Where can be the problem?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hello :)

You may want to consider modifying the package of the account after it's restored in your custom script:

Change Package API

This will ensure the quota is assigned and preserved for the account.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
The quota value should be defined in the packaged account. Thus, if it was set to unlimited on the server where it was packaged, it will use that value when it's restored by /scripts/restorepkg. Could you describe the migration script you are developing in a bit more detail? For instance, is there a specific reason why you prefer not to use the API provided by cPanel?

Thank you.