Options are directly passed to Drive Snapshot's `--exclude` parameter
Fixes GitHub issue #2
# 0 or less for indefinite\r
# You should set this to at least the same as $keepMonths\r
[Int32]$keepLogs = 2\r
# 0 or less for indefinite\r
# You should set this to at least the same as $keepMonths\r
[Int32]$keepLogs = 2\r
+# Comma separated lists of files and directories to exclude from the backup\r
+# See http://www.drivesnapshot.de/en/commandline.htm\r
+# Comment out if you don't want to use it\r
+#[String]$excludedPaths = "Path1,Path2"\r
\r
# Map network share to this drive letter, comment out if you don't want to use it\r
[String]$smbDrive = "Z"\r
\r
# Map network share to this drive letter, comment out if you don't want to use it\r
[String]$smbDrive = "Z"\r
$backupTargetDiff = $backupTargetDiff + "-" + $currTime\r
}\r
\r
$backupTargetDiff = $backupTargetDiff + "-" + $currTime\r
}\r
\r
+ # Compose the "exclude" parameter if necessary\r
+ if($excludedPaths) {\r
+ $dsAdditionalArgs += "--exclude:" + $excludedPaths\r
+ }\r
+\r
# Check if the backup target for this month, the directory for the full backup\r
# and the hash files exists. In this case we do a differential backup.\r
if((Test-Path $backupTarget) -and (Test-Path $backupTargetFull) -and (Test-Path "$backupTargetFull\*.hsh")) {\r
# Check if the backup target for this month, the directory for the full backup\r
# and the hash files exists. In this case we do a differential backup.\r
if((Test-Path $backupTarget) -and (Test-Path $backupTargetFull) -and (Test-Path "$backupTargetFull\*.hsh")) {\r