From 3d330f84c50db09490b438b80b9a24fa438169de Mon Sep 17 00:00:00 2001 From: Robin Kluth Date: Mon, 5 Dec 2022 17:21:38 +0100 Subject: [PATCH] Hotfix: Exclude defined subfolders as well --- .../usr/local/emhttp/plugins/ca.backup2/scripts/backup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/ca.backup2/usr/local/emhttp/plugins/ca.backup2/scripts/backup.php b/source/ca.backup2/usr/local/emhttp/plugins/ca.backup2/scripts/backup.php index 14ebb94..f9844fb 100644 --- a/source/ca.backup2/usr/local/emhttp/plugins/ca.backup2/scripts/backup.php +++ b/source/ca.backup2/usr/local/emhttp/plugins/ca.backup2/scripts/backup.php @@ -225,7 +225,7 @@ function backupLog($msg, $newLine = true, $skipDate = false) // Ignore . and .. and excluded folders continue; } - $commands[$srcFolderEntry] = "cd " . escapeshellarg($source) . " && /usr/bin/tar -caf " . escapeshellarg("{$destination}/CA_backup_$srcFolderEntry$fileExt") . " $srcFolderEntry >> {$communityPaths['backupLog']} 2>&1 & echo $! > {$communityPaths['backupProgress']} && wait $!"; + $commands[$srcFolderEntry] = "cd " . escapeshellarg($source) . " && /usr/bin/tar $rsyncExcluded -caf " . escapeshellarg("{$destination}/CA_backup_$srcFolderEntry$fileExt") . " $srcFolderEntry >> {$communityPaths['backupLog']} 2>&1 & echo $! > {$communityPaths['backupProgress']} && wait $!"; } } else { backupLog("Separate archives disabled! Saving into one file.");