Exchange 2003 Backups

From KlavoWiki
Revision as of 09:16, 15 February 2009 by David (talk | contribs) (New page: The following script save a bkf file with the current date. <pre> @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...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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