We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69425c3 commit 9f60080Copy full SHA for 9f60080
server/lib/classes/cron.d/500-backup.inc.php
@@ -84,7 +84,8 @@ public function onRunJob() {
84
}
85
86
if($run_backups){
87
- $sql = "SELECT * FROM web_domain WHERE server_id = ".$conf['server_id']." AND (type = 'vhost' OR type = 'vhostsubdomain')";
+ //* backup only active domains
88
+ $sql = "SELECT * FROM web_domain WHERE server_id = '".$conf['server_id']."' AND (type = 'vhost' OR type = 'vhostsubdomain') AND active = 'y'";
89
$records = $app->db->queryAllRecords($sql);
90
if(is_array($records)) {
91
foreach($records as $rec) {
0 commit comments