Welcome, Guest
Please Login or Register.
Lost Password?
running virtualmin perl scripts from bash (1 viewing)
Post Reply

TOPIC: running virtualmin perl scripts from bash

#14636
web_support@weballdesign. (User)
Posts: 3
graphgraph
running virtualmin perl scripts from bash 2008/07/09 09:54  
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 administrator has disabled public write access.
#14643
andreychek (User)
Posts: 269
graphgraph
Re:running virtualmin perl scripts from bash 2008/07/09 11:48  
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,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:

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

Have a good one,
-Eric
  The administrator has disabled public write access.
#14648
web_support@weballdesign. (User)
Posts: 3
graphgraph
Re:running virtualmin perl scripts from bash 2008/07/09 13:25  
Thank you very much!!

I will get into it right away..
  The administrator has disabled public write access.
Post Reply
get the latest posts directly to your desktop

Talk and Get Help

Support
Forums
Bugs and Issues

Get Virtualmin

OS Support
Buy Online
Download
Copyright 2005-2007 Virtualmin, Inc. All rights reserved.