Skip to content

Commit 9f60080

Browse files
author
root
committed
re-add backup only active domains
1 parent 69425c3 commit 9f60080

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/lib/classes/cron.d/500-backup.inc.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ public function onRunJob() {
8484
}
8585

8686
if($run_backups){
87-
$sql = "SELECT * FROM web_domain WHERE server_id = ".$conf['server_id']." AND (type = 'vhost' OR type = 'vhostsubdomain')";
87+
//* 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'";
8889
$records = $app->db->queryAllRecords($sql);
8990
if(is_array($records)) {
9091
foreach($records as $rec) {

0 commit comments

Comments
 (0)