running virtualmin perl scripts from bash

3 posts / 0 new
Last post
#1 Wed, 07/09/2008 - 09:54
web_support@web...

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?

Wed, 07/09/2008 - 11:48
andreychek

Howdy,

The following has a list of the command line Perl tools for backing up virtual servers:

http://www.virtualmin.com/component/option,com_openwiki/Itemid,48/id,vir...

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:

http://www.virtualmin.com/documentation/id,command_line_api/

Have a good one,
-Eric

Wed, 07/09/2008 - 13:25 (Reply to #2)
web_support@web...

Thank you very much!!

I will get into it right away..

Topic locked