Solved

How to add full Exchange backup to my current NTBACKUP .BKS Script

Posted on 2006-06-20
5
435 Views
Last Modified: 2008-02-01
Hello,

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:\Auto\
C:\Documents and Settings\
C:\Inetpub\
C:\WINNT\
D:\Documents and Settings\
D:\VOL1\
SystemState

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"

Function GetPath(theDate)
  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\"
   End Select
   GetPath = BackupDrive&BkPath&BackupName
End Function

Set WshShell = WScript.CreateObject("WScript.Shell")

strCommandLine = "ntbackup backup ""@"& BackupSelections &""" /j ""Daily Backup Job"" /f " & GetPath(Now)

WshShell.Run (strCommandLine)

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!
0
Comment
Question by:electricd7
  • 3
  • 2
5 Comments
 
LVL 95

Expert Comment

by:Lee W, MVP
ID: 16945587
Create a backup selection file that includes the information store.
0
 

Author Comment

by:electricd7
ID: 16945680
How do you mean??
0
 
LVL 95

Accepted Solution

by:
Lee W, MVP earned 250 total points
ID: 16945818
This line - it's using a backup selection.  Make a new backup selection for the information store.
CONST BackupSelections = "c:\auto\BEFP_Set.bks"

I use a batch script to do this. See
http://www.experts-exchange.com/Operating_Systems/WinXP/Q_21422934.html
0
 

Author Comment

by:electricd7
ID: 16946272
Ahh i see the beauty now!  I will try it tonight..if it works, you got the points.....If I could figure out your script I would probably switch too...nice scripting!
0
 

Author Comment

by:electricd7
ID: 16950680
leew..that worked like a charm!  Can I talk with you via email about your backup script?  I am thinking I would like to implement a variation of it here, but am a bit confused on a couple parts of it.  Thanks! and here's your points!
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question