suspend virtual servers during schedule backups

6 posts / 0 new
Last post
#1 Sat, 12/29/2012 - 13:42
persiancity

suspend virtual servers during schedule backups

is it possible to suspend virtual servers that we want to make backup for, during schedule backups? or show a maintenance message. this prevent mysql queries during backup of important database.

Sat, 12/29/2012 - 14:06
lp86

What I do is use the "run command before backup" to rename the configuration file for the software packages I use to stop anything from happening, when the config file is "missing" it will show a default maintenance message.

Sun, 12/30/2012 - 03:43
persiancity

what config file do you rename? thanks

Sun, 12/30/2012 - 04:33
Locutus

You could use the Virtualmin shell API to disable servers via the "run command before/after backup" feature. The command works like so:

root@lyra:~# virtualmin disable-domain
No domain specified
Disables all features in the specified virtual server.
 
virtualmin disable-domain --domain domain.name
                         [--why "explanation for disable"]

In the Virtualmin configuration, you can choose which features should get disabled when you make that call.

Wed, 01/02/2013 - 03:07
persiancity

thank you Locutus but it will need to limit disable options to apache otherwise everything will be disable include mail server and dns. is there a way to add a code to main httpd conf file to redirect all traffic to a page?

Wed, 01/02/2013 - 07:42
Locutus

As I wrote: In the Virtualmin configuration, you can choose which features should get disabled when you use the disable-domain function.

Topic locked