running virtualmin perl scripts from bash

I am running virtualmin pro on 2 servers. I am pretty comfortable in bash scripting but I don’t know much about perl. I am writing an automated script in bash to enable copying a domain from one server to the other and I am stuck.
Is it possible to run perl scipts from bash command line instead of the virtualmin web-interface?
If so how can I pass the parameters that were send with post to the perl script?
For example how can I backup a server e.g. testdomain with all features in a local file, as in Backup Virtual Servers in Virtualmin, but from bash command line instead?


The following has a list of the command line Perl tools for backing up virtual servers:,com_openwiki/Itemid,48/id,virtualmin_cat_backup_and_restore/

You could certainly call those from within a Bash script. Simply play around with it on the command line until you have it backing up the domains and features you want, then just put that exact command line into a bash script, and you’ll be all set.

If you had other Webmin/Virtualmin features you wanted to access, the full list of available commands is here:,command_line_api/

Have a good one,

Thank you very much!!

I will get into it right away…