Solved

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

Posted on 2006-06-20
5
439 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 96

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 96

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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

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…
Deploying our service is a grudge match between customer benefits and customer pain. In one corner, rolling out fixes (yay!) and delivering new features (double yay!). In the other corner, training on new features (boo – sounds like work), and chan…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

752 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