Skip to content

Commit

Permalink
Hotfix: Exclude defined subfolders as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Commifreak committed Dec 5, 2022
1 parent 475c90d commit 3d330f8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down

0 comments on commit 3d330f8

Please sign in to comment.