Skip to content

Commit 3d330f8

Browse files
committed
Hotfix: Exclude defined subfolders as well
1 parent 475c90d commit 3d330f8

File tree

1 file changed

+1
-1
lines changed
  • source/ca.backup2/usr/local/emhttp/plugins/ca.backup2/scripts

1 file changed

+1
-1
lines changed

source/ca.backup2/usr/local/emhttp/plugins/ca.backup2/scripts/backup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ function backupLog($msg, $newLine = true, $skipDate = false)
225225
// Ignore . and .. and excluded folders
226226
continue;
227227
}
228-
$commands[$srcFolderEntry] = "cd " . escapeshellarg($source) . " && /usr/bin/tar -caf " . escapeshellarg("{$destination}/CA_backup_$srcFolderEntry$fileExt") . " $srcFolderEntry >> {$communityPaths['backupLog']} 2>&1 & echo $! > {$communityPaths['backupProgress']} && wait $!";
228+
$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 $!";
229229
}
230230
} else {
231231
backupLog("Separate archives disabled! Saving into one file.");

0 commit comments

Comments
 (0)