added excludes in ini file ...
This commit is contained in:
parent
2bff353fa6
commit
65dd48b54a
BIN
snapcontrol.exe
BIN
snapcontrol.exe
Binary file not shown.
@ -51,6 +51,10 @@ BackupStart = 0005:00
|
|||||||
; see http://www.drivesnapshot.de/en/commandline.htm
|
; see http://www.drivesnapshot.de/en/commandline.htm
|
||||||
Disks2Dump = HD1:*
|
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)
|
; maximum size of dumpfiles in MB (reduce for fat32 target drives to 4095)
|
||||||
DumpSize = 4095
|
DumpSize = 4095
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
; LICENSE : MIT License
|
; LICENSE : MIT License
|
||||||
; AUTHOR : Michael H.G. Schmidt
|
; AUTHOR : Michael H.G. Schmidt
|
||||||
; EMAIL : michael@schmidt2.de
|
; EMAIL : michael@schmidt2.de
|
||||||
; DATE : 20210526
|
; DATE : 20210528
|
||||||
; ------------------------------------------------------------
|
; ------------------------------------------------------------
|
||||||
;
|
;
|
||||||
; This tool creates an image backups of windows machines,
|
; This tool creates an image backups of windows machines,
|
||||||
@ -29,7 +29,7 @@ EnableGraphicalConsole(0)
|
|||||||
|
|
||||||
Dim filelist$(0)
|
Dim filelist$(0)
|
||||||
|
|
||||||
Global VERSION$="V1.02"
|
Global VERSION$="V1.03"
|
||||||
Global installme = 0
|
Global installme = 0
|
||||||
Global updatesched = 0
|
Global updatesched = 0
|
||||||
Global dryrun = 0
|
Global dryrun = 0
|
||||||
@ -105,6 +105,7 @@ Global TargetPassword$ = ReadPreferenceString("TargetPassword","guest")
|
|||||||
Global BackupschedMode$ = ReadPreferenceString("BackupschedMode","LOGIN")
|
Global BackupschedMode$ = ReadPreferenceString("BackupschedMode","LOGIN")
|
||||||
Global BackupStart$ = ReadPreferenceString("BackupStart","0005:00")
|
Global BackupStart$ = ReadPreferenceString("BackupStart","0005:00")
|
||||||
Global Disks2Dump$ = ReadPreferenceString("Disks2Dump","HD1:*")
|
Global Disks2Dump$ = ReadPreferenceString("Disks2Dump","HD1:*")
|
||||||
|
Global ExcludeList$ = ReadPreferenceString("ExcludeList","")
|
||||||
Global DumpSize$ = ReadPreferenceString("DumpSize","4095")
|
Global DumpSize$ = ReadPreferenceString("DumpSize","4095")
|
||||||
Global Verify$ = ReadPreferenceString("Verify","yes")
|
Global Verify$ = ReadPreferenceString("Verify","yes")
|
||||||
Global BurnTrash$ = ReadPreferenceString("BurnTrash","no")
|
Global BurnTrash$ = ReadPreferenceString("BurnTrash","no")
|
||||||
@ -518,9 +519,16 @@ EndIf
|
|||||||
params$ + " --FullIfHashIsMissing --CreateDir -W -L" + DumpSize$ + " " + Disks2Dump$
|
params$ + " --FullIfHashIsMissing --CreateDir -W -L" + DumpSize$ + " " + Disks2Dump$
|
||||||
|
|
||||||
LogMe("INFO: executing command [ " + SnapshotBin$ + " ]")
|
LogMe("INFO: executing command [ " + SnapshotBin$ + " ]")
|
||||||
LogMe(" DumpFile: [ " + DumpFile$ + " ]")
|
LogMe(" DumpFile: [ " + DumpFile$ + " ]")
|
||||||
LogMe(" HashFile: [ " + HashFile$ + " ]")
|
|
||||||
LogMe(" LogFile: [ " + LogFile$ + " ]")
|
; any excludes ? ...
|
||||||
|
If ( ExcludeList$ <> "" )
|
||||||
|
params$ + " --exclude:" + ExcludeList$
|
||||||
|
LogMe(" ExcludeList: [ " + ExcludeList$ + " ]")
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
LogMe(" HashFile: [ " + HashFile$ + " ]")
|
||||||
|
LogMe(" LogFile: [ " + LogFile$ + " ]")
|
||||||
|
|
||||||
If ( dryrun = 0 )
|
If ( dryrun = 0 )
|
||||||
e = system(SnapshotBin$ + " --Logfile:" + LogFile$ + " " + params$ + " " + DumpFile$ + " " + HashFile$)
|
e = system(SnapshotBin$ + " --Logfile:" + LogFile$ + " " + params$ + " " + DumpFile$ + " " + HashFile$)
|
||||||
@ -531,8 +539,8 @@ EndProg(e)
|
|||||||
|
|
||||||
; IDE Options = PureBasic 5.73 LTS (Windows - x64)
|
; IDE Options = PureBasic 5.73 LTS (Windows - x64)
|
||||||
; ExecutableFormat = Console
|
; ExecutableFormat = Console
|
||||||
; CursorPosition = 58
|
; CursorPosition = 526
|
||||||
; FirstLine = 20
|
; FirstLine = 500
|
||||||
; Folding = --
|
; Folding = --
|
||||||
; EnableXP
|
; EnableXP
|
||||||
; Executable = snapcontrol.exe
|
; Executable = snapcontrol.exe
|
||||||
|
Loading…
Reference in New Issue
Block a user