Create 3 text batch files.
1.for shutting down services
BkupPrep.cmd
<snip>
Net stop "microsoft exchange event service"
Net stop "microsoft exchange internet mail service"
Net stop "microsoft exchange message transfer agent"
</snip>
2.for backing up files
Bkup.cmd
<snip>
ntbackup backup c:\ /b /hcn /t normal /l "special.log" /e
ntbackup backup k:\exchsrvr\ /a /hcn /t normal /l "special.log" /e
ntbackup backup f:\ /a /hcn /t normal /l "special.log" /e
</snip>
3.restarting services
bkupdone.cmd
<snip>
Net start "microsoft exchange event service"
Net start "microsoft exchange internet mail service"
Net start "microsoft exchange message transfer agent"
</snip>
Then use the Scheduled Tasks by double Clicking on my computer. Run the batch files at the appropriate times.
Document your process.
<NT help file>
Using Batch Files to Do Backups
Syntax:
ntbackup [/nopoll] [/missingtape]
/nopoll
Specifies that the tape should be erased. Do not use /nopoll with any other parameters.
/missingtape
Specifies that a tape is missing from the backup set when the set spans several tapes. Each tape becomes a single unit as opposed to being part of the set.
You can create a batch file to back up one or more drives regularly. However, using batch files enables you to back up directories only (not individual files). Wildcard characters cannot be used in the batch files.
Each of the following parameters (except /tape) must be used only with the backup operation parameter.
path
Specifies one or more paths of the directories to be backed up.
/a
Causes backup sets to be added or appended after the last backup set on the tape. When /a is not specified, the program overwrites previous data. When more than one drive is specified but /a is not, the program overwrites the contents of the tape with the information from the first drive selected and then appends the backup sets for the remaining drives.
/v
Verifies the operation.
/r
Restricts access.
/d "text"
Specifies a description of the backup contents.
/b
Specifies that the local registry be backed up.
/hcn or /hcff
Specifies that hardware compression is on or off.
/t {option}
Specifies the backup type. Option can be one of the following:
normal copy
incremental differential
daily
/l "filename"
Specifies the filename for the backup log.
/e
Specifies that the backup log include exceptions only.
/tape:{n}
Specifies the tape drive to which the files should be backed up. N is a number from 0 to 9 that corresponds to the number the drive was assigned when the tape drive was installed.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.