Solved

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

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

747 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

14 Experts available now in Live!

Get 1:1 Help Now