cloning a virtual-server

i suppose its best to use some high-tech command-line to clone existing virtual-servers rather than some boring point-n-click method?

http://www.virtualmin.com/documentation/developer/cli/clone_domain

virtualmin clone-domain --domain domain.name
–newdomain new.name
[–newuser name]
[–newpass password]

if i start to use the command-line rather than the website interface, i am in serious danger of loosing my comfortable newbie status.

ok i am totally absolutely 100% blown-away impressed:

virtualmin clone-domain --domain oldDomain.com --newdomain newDomain.com ;

another one like this, and i am going to have the virtualmin logo tattooed on my chest.

Don’t forget the names “Joe”, “Jamie” and “Eric” tattooed in upper and lower half-circles around the logo! :wink:

Indeed the CLI is very useful. Just a few days ago I made a script - for Dovecot/Postfix SSL wildcard certificate purposes - that runs after every change to domains, collects those that have email enabled, and composes a DNS zone from them. Afterwards, updates the zone’s serial number and reloads BIND.

having used cPanel (and a little plesk) and one other no-name interface, the command-line interface just blows my mind away. i don’t believe that either cPanel or plesk has anything anywhere remotely close to this.

now i am thinking about just embedding the virtualmin clone-domain command in a bash for-loop…

i just ordered two books, “the book of webmin” and “managing linux systems with webmin”. i hope to get each book autographed by the authors.

Virtualmin is the best. The only thing better than their products is their support!

with clone-domain is possibile to clone a top-level server to a sub-server that belong to it? I think not right?

Example:
source: mydomain.com
cloning it as the sub-server: sandbox.mydomain.com