ispCP - Board - Support
migrate a domain from one account to another ispCP account - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Migration (/forum-35.html)
+--- Thread: migrate a domain from one account to another ispCP account (/thread-6614.html)



migrate a domain from one account to another ispCP account - r3r3 - 05-04-2009 04:13 AM

hello,

hey i have my main ispCP account, in this main account i have two domains/vhost (the main domain and a secondary) i am willing to move the secondary domain to its own ispcp account (on the same server/ispcp)

How should i proceed to keep all the emails for this domain? Because when i want to delete a domain it ask me to remove the mail account first.

What would be the best way do do that?


RE: migrate a domain from one account to another ispCP account - pgentoo - 05-04-2009 07:34 AM

There is not currently an easy way to do this.

We should definately support this going forward though...

At minumum, we need to do the following, but i'm sure there is more to be done...
- create the new account in the db
- update the domain information in the database to assign it to the new account
- force the system to setup the new user/location (should rebuild apache's ispcp.conf, create the /var/www/fcgi/domain.com files, create home directory with proper ownership, etc)
- Move the old domain files into the new folder, set file ownerships, permisssions
- missing anything?

Hopefully someone has some time to write some scripts to automate the move. Smile

-
pgentoo


RE: migrate a domain from one account to another ispCP account - r3r3 - 05-04-2009 07:54 AM

Thank you for your imput pgentoo

or maybe it would be easier just to backup the emails/website/db, delelte the email accounts, delete the vhost, create a new account with the domain, recreate the email accounts and restore the emails?

This sound easier to me but if anyone has a better idea.. or aybe someone has done it already? please feel free to share (:


RE: migrate a domain from one account to another ispCP account - pgentoo - 05-04-2009 08:11 AM

Yeah, for now, i would say it would be easiest to do what you suggested... Backup everything, delete, re-add, restore.

It would still be nice to have an easy way for an admin/reseller to move domains between accounts. Hopefully someone provides a script/patch to do this in the future. Smile


RE: migrate a domain from one account to another ispCP account - r3r3 - 05-04-2009 08:12 AM

that would be uber Smile


RE: migrate a domain from one account to another ispCP account - TonyJim - 01-23-2010 03:13 PM

very helpfull indeed