Organizing server domains properly

I’ve just migrated an old VestaCP server to a new and updated HestiaCP with no issues (thank you to the developers for the excellent work).

The old server was not properly organized, since some unrelated domains were added as add-on domains instead of creating a new user/main domain.

I would like to organize the server properly, but I don’t know whether there is any method or script to move an add-on domain to a new user (stand-alone domain).

Do you have any suggestion? Is there any way to do this?
In case of having to do this manually, is there any way to move email, databases, etc. without having to create everything again?

Thank you very much in advance.

v-change-domain-owner and v-change-database-owner allows you to move the domains to a new user

3 Likes

Oh, thank you!
Would this create a new user automatically or do I have to create the user first?

Yes you need to create the user first

1 Like

Thank you eris,
Does v-change-domain-owner move emails too or do I need to move them using any other command?

No v-change-domain-owner does also move all mail accounts

1 Like

Thank you very much for your time. It worked like a charm!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.