How to add full Exchange backup to my current NTBACKUP .BKS Script
Posted on 2006-06-20
I have NTBACKUP setup to backup files on one machine based off of a .BKS file. I have a vbs script that I schedule to set the path for the backup. The contents of the .BKS file are:
C:\Documents and Settings\
D:\Documents and Settings\
The contents of the .VBS script are:
'Backup Script to Generate MS Backup File Based on Day
CONST BackupDrive = "E:\Backup"
CONST BackupName = "Daily.bkf"
CONST BackupSelections = "c:\auto\BEFP_Set.bks"
Dim DayNumber, BkPath
DayNumber = Weekday(theDate)
Select Case DayNumber
Case 1 BkPath = "\Sunday\"
Case 2 BkPath = "\Monday\"
Case 3 BkPath = "\Tuesday\"
Case 4 BkPath = "\Wednesday\"
Case 5 BkPath = "\Thursday\"
Case 6 BkPath = "\Friday\"
Case 7 BkPath = "\Saturday\"
Case Else BkPath = "\ERROR\"
GetPath = BackupDrive&BkPath&BackupName
Set WshShell = WScript.CreateObject("WScript.Shell")
strCommandLine = "ntbackup backup ""@"& BackupSelections &""" /j ""Daily Backup Job"" /f " & GetPath(Now)
Basically this script runs daily and offloads the backup file to the correct folder. Now this works great, except that I need to perform a backup of the MSExchange store which is on the same box nightly as well. I tried adding this to the script, but it didn't seem to take:
WTHIBEFP1\Microsoft Information Store\First Storage Group
I can perform a manual backup of the Exchange server using the GUI for NTBACKUP but I need to automate it. Thanks in advance for the help!