From 9f60080403c262c19781931e3078cbd6fa670f61 Mon Sep 17 00:00:00 2001
From: root <root@akxnet.de>
Date: Sat, 15 Feb 2014 09:00:28 -0500
Subject: [PATCH] re-add backup only active domains
---
server/lib/classes/cron.d/500-backup.inc.php | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/server/lib/classes/cron.d/500-backup.inc.php b/server/lib/classes/cron.d/500-backup.inc.php
index 2e7e030..f932744 100644
--- a/server/lib/classes/cron.d/500-backup.inc.php
+++ b/server/lib/classes/cron.d/500-backup.inc.php
@@ -84,7 +84,8 @@
}
if($run_backups){
- $sql = "SELECT * FROM web_domain WHERE server_id = ".$conf['server_id']." AND (type = 'vhost' OR type = 'vhostsubdomain')";
+ //* backup only active domains
+ $sql = "SELECT * FROM web_domain WHERE server_id = '".$conf['server_id']."' AND (type = 'vhost' OR type = 'vhostsubdomain') AND active = 'y'";
$records = $app->db->queryAllRecords($sql);
if(is_array($records)) {
foreach($records as $rec) {
--
Gitblit v1.9.1