WizYo Blog ! WizYo Sytes Net Tech Support
What a great place to share :) Here you will find flashes of brilliance caught for all the world to enjoy. .. Actually, these are brief articles describing how I fixed a problem. Every day, I find information online that helps me solve a mystery. So this is me giving back to the community. Thanks for stopping by.. and don't forget to tell your friends!

Handy tape backup script

This script has been designed to interface with NTbackup on a Windows 2000 server

I have decided not to allow line wrapping to help with readability. If your browser doesn't support scrolling of this article, consider using FireFox.

Set this batch file in "C:\Tech" and schedule a task to run it with administrative priviledges. The script below should create two log files on it's own with the date and time of "starting" and "stopping" in the same folder. It should also start backing up on "4mm DDS" tape drive (change this to your hardware) in overwrite mode and name the tape using the date and time. This should provide a unique name every time it is run. The next few commands append to the tape with the same name (the one still in there).

(the eject command doesn't quite work yet, but has been left as a future reminder to include it at some point)

@echo off
c:
cd\tech
FOR /F "Tokens=1-4 Delims=-/ " %%i IN ('date /t') DO SET dt=%%i-%%j-%%k-%%l-
FOR /F "tokens=1-4 delims=:/ " %%i IN ('TIME /t') DO SET dt=%dt%-%%i-%%j

echo ===   ===   ===   ===   ===   ===   ===   Start %dt% >1start.log

%windir%\system32\NTBACKUP.EXE backup E:\ /j "E Drive" /n %dt% /p "4mm DDS" /d "Daily Backup"    /v:yes /r:no /l:s /m normal /rs:no /hc:on  /um
%windir%\system32\NTBACKUP.EXE backup D:\ /j "D Drive" /t %dt% /d "Daily Backup" /a /v:yes /r:no /l:s /m normal /rs:no /hc:on
%windir%\system32\NTBACKUP.EXE backup systemstate C:\ /j "C Drive" /t %dt% /d "Daily Backup" /a /v:yes /r:no /l:s /m normal /rs:no /hc:on
rem %windir%\system32\NTBACKUP.EXE eject

FOR /F "Tokens=1-4 Delims=-/ " %%i IN ('date /t') DO SET dt=%%i-%%j-%%k-%%l-
FOR /F "tokens=1-4 delims=:/ " %%i IN ('TIME /t') DO SET dt=%dt%-%%i-%%j
echo ===   ===   ===   ===   ===   ===   ===   Stop %dt% >2stop.log

 

 

( )

Sunday, December 10, 2006


0 Comments:

Post a Comment

Back to top.

Home
WizYo
Sytes Net

Links
~hot~ Links


this site !

GuestBook
Guests

Free Hit Counter

Blog!

Tell a friend about Tech Support available here !

Free Phone with iTunes
- Previous -
 
- incorrect date/time info on new Lenovo towers
 
- Microsoft error reporting strikes again !
 
- Reboot workstations after SP2 for Exchange 2003
 
- Firefox tweaks
 
- RDP Client - printer access
 
- Outlook Express SMTP Authentication Instructions
 
- 16-bit Application Reveals System File Mismatch
 
- Backup Integrated Network Server
 
- How aggravating !
 
- Exclude extensions from network scan
 
- Search -
 

 


it's private

 

This page is powered by Blogger. Isn't yours?