The migration tool seems to work great overall. Thank you. I've migrated about 50 accounts so far with great success
The one issue I just noticed is that email account quotas are not being restored. All email accounts appear to be restored as "unlimited" regardless of their quota on the cPanel server. Is this a bug or something that just isn't being done? It should be possible to parse the mailbox quota from the first line of the maildirsize file in each account, if a quota is set.
Also I noticed that /usr/local/directadmin/scripts/add_email.sh will never write a quota if the quota file does not already exist. Possibly this is where the issue is happening because on my restored accounts there is no /etc/virtual/<domain>/quota file at all. If the restore is using that script to create the email accounts, there will never be a quota file created. It looks to me that the
if [ -e ${QUOTA} ]; then
needs an
So the file gets created with the first entry if it doesn't exist.
Thanks,
Ron
The one issue I just noticed is that email account quotas are not being restored. All email accounts appear to be restored as "unlimited" regardless of their quota on the cPanel server. Is this a bug or something that just isn't being done? It should be possible to parse the mailbox quota from the first line of the maildirsize file in each account, if a quota is set.
Also I noticed that /usr/local/directadmin/scripts/add_email.sh will never write a quota if the quota file does not already exist. Possibly this is where the issue is happening because on my restored accounts there is no /etc/virtual/<domain>/quota file at all. If the restore is using that script to create the email accounts, there will never be a quota file created. It looks to me that the
if [ -e ${QUOTA} ]; then
needs an
Code:
else
echo "${EMAIL}:${QUOTAVAL}" > ${QUOTA}
So the file gets created with the first entry if it doesn't exist.
Thanks,
Ron