Express Auto Backup like VSS
crebkexp.bat
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
<xmp>mkdir c:expresstools rem mkdir e:expresstools cd c:expresstools rem cd e:expresstools schtasks /create /f /sc ONSTART /tn "Express Backup Daily Autoupdate" /tr "cmd.exe /C "%~dp0bkexpvssd.bat" -log" /ru SYSTEM /delay 0000:10 rem schtasks /create /f /sc ONSTART /tn "Express Backup Daily Autoupdate" /tr "cmd.exe /C "E:expresstoolsbkexpvssd.bat" -log" /ru SYSTEM /delay 0000:10 schtasks /create /f /sc WEEKLY /d FRI /st 17:05 /tn "Express Backup Weekly Autoupdate" /tr "cmd.exe /C "%~dp0bkexpvssw.bat" -log" /ru SYSTEM rem schtasks /create /f /sc WEEKLY /d FRI /st 17:05 /tn "Express Backup Weekly Autoupdate" /tr "cmd.exe /C "E:expresstoolsbkexpvssw.bat" -log" /ru SYSTEM rem *** remove old SR add add new SR schtasks /Delete /tn "MicrosoftWindowsSystemRestoreSR" /F schtasks /Create /XML sr.xml /tn "MicrosoftWindowsSystemRestoreSR" rem view volume id use volumelist.bat output vollist.txt rem *** don't forget cahnge volume id at bkexpvssd.bat bkexpvssw.bat *** mountvol q: ?Volume{35e857de-6db8-4582-bd58-4b0e531a7d8e} md q:bkexp-d md q:bkexp-w mountvol q: /D </xmp> |
bkexpvssd.bat
1 2 3 4 5 6 7 |
<xmp>rem Volume id use volumelist.bat and put to line 2 mountvol Q: \?Volume{FE518032-8B39-46BD-BA8E-E9E74915AA39} rem change Express to correct Drivepath robocopy E:accountEXPRESSI Q:bkexp-dEXPRESSI /xo /s /r:1 /w:1 /nfl /ndl /njh /njs /nc /ns /np mountvol Q: /D</xmp> |
bkexpvssw.bat
1 2 3 4 5 6 7 |
<xmp>rem Volume id use volumelist.bat and put to line 2 mountvol Q: \?Volume{FE518032-8B39-46BD-BA8E-E9E74915AA39} rem change Express to correct Drivepath robocopy E:accountEXPRESSI Q:bkexp-wEXPRESSI /xo /s /r:1 /w:1 /nfl /ndl /njh /njs /nc /ns /np mountvol Q: /D</xmp> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
<xmp><?xml version="1.0" encoding="UTF-16"?> <Task version="1.6" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task"> <RegistrationInfo> <Source>Microsoft Corporation</Source> <Author>Microsoft Corporation</Author> <Description>This task creates regular system protection points.</Description> <URI>MicrosoftWindowsSystemRestoreSR</URI> <SecurityDescriptor>D:(A;;GA;;;SY)(A;;GA;;;BA)(A;;FRFX;;;LS)</SecurityDescriptor> </RegistrationInfo> <Triggers> <BootTrigger> <Enabled>true</Enabled> </BootTrigger> <CalendarTrigger> <StartBoundary>2021-08-19T17:10:00</StartBoundary> <Enabled>true</Enabled> <ScheduleByDay> <DaysInterval>1</DaysInterval> </ScheduleByDay> </CalendarTrigger> <CalendarTrigger> <StartBoundary>2021-08-19T12:10:51</StartBoundary> <Enabled>true</Enabled> <ScheduleByDay> <DaysInterval>1</DaysInterval> </ScheduleByDay> </CalendarTrigger> </Triggers> <Principals> <Principal id="LocalSystem"> <UserId>S-1-5-18</UserId> <RunLevel>LeastPrivilege</RunLevel> </Principal> </Principals> <Settings> <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy> <DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries> <StopIfGoingOnBatteries>false</StopIfGoingOnBatteries> <AllowHardTerminate>true</AllowHardTerminate> <StartWhenAvailable>true</StartWhenAvailable> <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable> <IdleSettings> <Duration>PT10M</Duration> <WaitTimeout>PT1H</WaitTimeout> <StopOnIdleEnd>true</StopOnIdleEnd> <RestartOnIdle>false</RestartOnIdle> </IdleSettings> <AllowStartOnDemand>true</AllowStartOnDemand> <Enabled>true</Enabled> <Hidden>false</Hidden> <RunOnlyIfIdle>true</RunOnlyIfIdle> <DisallowStartOnRemoteAppSession>false</DisallowStartOnRemoteAppSession> <UseUnifiedSchedulingEngine>true</UseUnifiedSchedulingEngine> <MaintenanceSettings> <Period>P3D</Period> <Deadline>P3DT1M</Deadline> <Exclusive>true</Exclusive> </MaintenanceSettings> <WakeToRun>false</WakeToRun> <ExecutionTimeLimit>PT72H</ExecutionTimeLimit> <Priority>7</Priority> </Settings> <Actions Context="LocalSystem"> <Exec> <Command>%windir%system32srtasks.exe</Command> <Arguments>ExecuteScheduledSPPCreation</Arguments> </Exec> </Actions> </Task></xmp> |