I have used the virtualmin UI to rename two virtual servers and although this does many steps, it does not do them all and I need an alternative approach. When I rename a virtual server it does change the DNS, Apache host and a handfull of other things but it leaves the old mysql database name, username, password, file/directory owners, etc. so it is hardly a complete procedure. Is there another way to migrate a virtual server to a new name? Perhaps backup the virtual server, delete it, create the new virtual server and then restore the old server backup? I need a complete way to rename a virtual server if this is possible.
rename virtual server