Question

Locked

Windows Backup

By benjamin.egas ·
All,

Firstly I would like to thank all the people who have helped me while I am taking over management of this facility. The advice and direction given have proven to be useful.

Currently we have 4 servers which require backup to tapes. DC, Email, File Server and ERP server. We do not have third party software for backups, so, I am limited to using Windows Backup. On all servers, I collect the systems' state, information stores/data base. This is really all we need to recover quickly from a disaster ... Provided we don't need new servers. While going through the existing backup solutions I found NTBACKUP script files. I can figure out most of the code short of ...

for /f "Tokens=1-4 Delims=/ " %%i in ('date /t') do set dt=%%i-%%j-%%k-%%l
for /f "Tokens=1" %%i in ('time /t') do set tm=-%%i
set tm=%tm::=-%
set dtt=%dt%%tm%

... Forgive me if I seem stupid. I simply don't have a whole lot of experience with batch file scripting. From what I can tell ... It appears to be some kind of nested 'For' statement that is putting the time and date into variables for use with ntbackup.exe ???!!! . I just can't seem to "read" it. I have seen it (or something similar) on Technet and a few other sites but no one explains it. In addition, I have pulled some white papers on batch file scripting but it's just not lighting the bulb in my head.

Here is the full backup script for you guys ...

net stop ntmssvc
sleep 60
net start ntmssvc
sleep 60

rsm.exe refresh /lf"ARCHIVE Python 04106-XXX SCSI Sequential Device"
sleep 60

for /f "Tokens=1-4 Delims=/ " %%i in ('date /t') do set dt=%%i-%%j-%%k-%%l
for /f "Tokens=1" %%i in ('time /t') do set tm=-%%i
set tm=%tm::=-%
set dtt=%dt%%tm%
C:\WINNT\system32\ntbackup.exe backup systemstate "@c:\FileBackup.bks" /n "Craftech File-Server Backup %dtt%" /d "Craftech File-Server Backup %dtt%" /v:no /r:no /rs:no /hc:on /m normal /j "%dtt%" /l:s /p "4mm DDS" /UM

rsm.exe eject /PF"Craftech File-Server Backup %dtt% - 1" /astart

... Any help, name calling, caps statements or anything else is truly appreciated.

Benjamin

This conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Share your knowledge
Back to Networks Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums