diff --git a/snapcontrol.exe b/snapcontrol.exe index c94266d..367793a 100644 Binary files a/snapcontrol.exe and b/snapcontrol.exe differ diff --git a/snapcontrol.ini b/snapcontrol.ini index 1cd02d3..e641c25 100644 --- a/snapcontrol.ini +++ b/snapcontrol.ini @@ -51,6 +51,10 @@ BackupStart = 0005:00 ; see http://www.drivesnapshot.de/en/commandline.htm Disks2Dump = HD1:* +; paths to exclude (comma separated list) +; spaces in silenames must be enclosed with "" +ExcludeList = c:\TEMP,C:\Perflogs + ; maximum size of dumpfiles in MB (reduce for fat32 target drives to 4095) DumpSize = 4095 diff --git a/snapcontrol.pb b/snapcontrol.pb index abcdd3d..cc498b5 100644 --- a/snapcontrol.pb +++ b/snapcontrol.pb @@ -7,7 +7,7 @@ ; LICENSE : MIT License ; AUTHOR : Michael H.G. Schmidt ; EMAIL : michael@schmidt2.de -; DATE : 20210526 +; DATE : 20210528 ; ------------------------------------------------------------ ; ; This tool creates an image backups of windows machines, @@ -29,7 +29,7 @@ EnableGraphicalConsole(0) Dim filelist$(0) -Global VERSION$="V1.02" +Global VERSION$="V1.03" Global installme = 0 Global updatesched = 0 Global dryrun = 0 @@ -105,6 +105,7 @@ Global TargetPassword$ = ReadPreferenceString("TargetPassword","guest") Global BackupschedMode$ = ReadPreferenceString("BackupschedMode","LOGIN") Global BackupStart$ = ReadPreferenceString("BackupStart","0005:00") Global Disks2Dump$ = ReadPreferenceString("Disks2Dump","HD1:*") +Global ExcludeList$ = ReadPreferenceString("ExcludeList","") Global DumpSize$ = ReadPreferenceString("DumpSize","4095") Global Verify$ = ReadPreferenceString("Verify","yes") Global BurnTrash$ = ReadPreferenceString("BurnTrash","no") @@ -518,9 +519,16 @@ EndIf params$ + " --FullIfHashIsMissing --CreateDir -W -L" + DumpSize$ + " " + Disks2Dump$ LogMe("INFO: executing command [ " + SnapshotBin$ + " ]") -LogMe(" DumpFile: [ " + DumpFile$ + " ]") -LogMe(" HashFile: [ " + HashFile$ + " ]") -LogMe(" LogFile: [ " + LogFile$ + " ]") +LogMe(" DumpFile: [ " + DumpFile$ + " ]") + +; any excludes ? ... +If ( ExcludeList$ <> "" ) + params$ + " --exclude:" + ExcludeList$ + LogMe(" ExcludeList: [ " + ExcludeList$ + " ]") +EndIf + +LogMe(" HashFile: [ " + HashFile$ + " ]") +LogMe(" LogFile: [ " + LogFile$ + " ]") If ( dryrun = 0 ) e = system(SnapshotBin$ + " --Logfile:" + LogFile$ + " " + params$ + " " + DumpFile$ + " " + HashFile$) @@ -531,8 +539,8 @@ EndProg(e) ; IDE Options = PureBasic 5.73 LTS (Windows - x64) ; ExecutableFormat = Console -; CursorPosition = 58 -; FirstLine = 20 +; CursorPosition = 526 +; FirstLine = 500 ; Folding = -- ; EnableXP ; Executable = snapcontrol.exe