Solved

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

Posted on 2006-06-20
5
432 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

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…
The new Gmail Phishing Scam going around is surprising even the savviest of users with its sophisticated techniques. This attack comes as a nightmare trifecta for email filtering services; sent from a familiar contact, using authentic tone and verbi…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

861 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now