Exchange 2003 Backups

From KlavoWiki
Jump to navigationJump to search

The following script save a bkf file with the current date.

@echo off
net use t: \\pc\c$\Backup\Exchange


set date-time=%date:~10,4%%date:~7,2%%date:~4,2%-%time:~0,2%%time:~3,2%.bkf
ntbackup backup "@C:\WINDOWS\exch-files.bks" /j "Exchange"  /f "T:\mail2-backup.bks" /V:yes

T:
ren "mail2-backup.bks" "mail2 %date-time%"
C:

set date-time=
net use T: /d /y