' VBScript file for nightly Restoration of Acronis Backup
' Restores a predefined backup from the Acronis Secure Zone
' Creates a log file in D:\AcronisLogs
Const wshYes = 6
Const wshNo = 7
Const wshQuestionMark = 32
Set objShell = CreateObject("Wscript.Shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")
'Creates Log Directory
strFolderPath = "D:\AcronisLogs\"
If objFSO.FolderExists(strFolderPath) Then
Else
objFSO.CreateFolder(strFolderPath)
End If
'Warining Messages
objShell.Popup "The C: drive is currently being restored, please be aware that personal data (desktop and My Documents) on the C: will be temporarily stored on the D: drive, then moved back to the C: drive. As such, you are urged that you save to the D: drive, so there is no risk of your data being lost.", _
10, "Scheduled Task", wshQuestionMark
objShell.Run "C:\scripts\Message.vbs"
dim log
log = "D:\AcronisLogs\Restore_" & Right("0" & hour(time),2) & Right("0" & minute(time),2) & "_" & Right("0" & Month(Date),2) & "_" & Right("0" & Day(Date),2) & "_" & Year(Date) & ".log"
'Calls Acronis to restore the first backup store in the Acronis Secure Zone
Dim MyObj
Set MyObj=CreateObject("WScript.Shell")
MyObj.Run("""c:\program files\acronis\trueimageworkstation\trueimagecmd.exe"" /filerestore /asz:2 /index:3 /log:" & log)
WScript.quit