From d8c934365aa0777c9609543f54ec76f18df1f204 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Tue, 28 Dec 2021 17:40:32 +0100 Subject: [PATCH] Exclude old log files from backup (#3307) Currently log files are excluded from the backup. Core uses a time or startup based log rotation mechanism, both append a dot and an additional; string (`.1`, `.{timestamp}`). There is also a fault mechanism which creates a log file with the ending `.log.fault`. Exclude all cases from the backup. --- supervisor/backups/backup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/supervisor/backups/backup.py b/supervisor/backups/backup.py index 5e5c9b2f7..601fc0f47 100644 --- a/supervisor/backups/backup.py +++ b/supervisor/backups/backup.py @@ -58,6 +58,7 @@ MAP_FOLDER_EXCLUDE = { "*.db-shm", "__pycache__/*", "*.log", + "*.log.*", "OZW_Log.txt", ] }