diff --git a/scripts/pi-hole/php/teleporter.php b/scripts/pi-hole/php/teleporter.php index 0e9740f204..f378ded476 100644 --- a/scripts/pi-hole/php/teleporter.php +++ b/scripts/pi-hole/php/teleporter.php @@ -84,8 +84,10 @@ function archive_restore_table($file, $table, $flush=false) if(is_null($contents)) return 0; + $flush_ignore = array("blacklist", "regex_blacklist", "whitelist", "regex_whitelist"); + // Flush table if requested, only flush each table once - if($flush && !in_array($table, $flushed_tables)) + if($flush && !in_array($table, $flushed_tables) && !in_array($table, $flush_ignore)) { $db->exec("DELETE FROM \"".$table."\""); array_push($flushed_tables, $table);