public static function initEXCL() { //adding files from the TEMP_EXCL file if (file_exists(self::$TEMP_EXCL)) { self::$excludeList = array_filter(explode("\n", file_get_contents(self::$TEMP_EXCL))); } //excluding existing backup archives $excludeBackupFiles = self::getBackupFiles(); foreach ($excludeBackupFiles as $file) { self::$excludeList[sizeof(self::$excludeList)] = $file; } //self::debug(self::$TEMP_EXCL); self::debug("Excluded list:" . implode("\n", self::$excludeList)); }