Search This Blog

Monday, August 15, 2011

my NTBACKUP scripts from the internet

my NTBACKUP scripts from the internet

its done on a windows 2003 std server

this server has shadow protect loaded (I got a problem removing it)

with LSI ultra320 PCI card linked to Quantum SuperLoader 3 with SDLT 600 tape drive
it only got left hand side magazine (this didn't reflect on the the scripts)

the original problem with their NTbackup is that it wont start because of VSS error.


echo off
 rem close all open files first
 for /f "skip=4 tokens=1" %%a in ('net files') do net files %%a /close
 
  rsm refresh /LF"Quantum SuperLoader"
  ping localhost -n 30 > nul

net start "Volume Shadow Copy"
ping localhost -n 8 > nul

net start "Microsoft Software Shadow Copy Provider"
ping localhost -n 8 > nul
net start "StorageCraft Shadow Copy Provider"
ping localhost -n 8 > nul

  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:\WINDOWS\system32\ntbackup.exe backup "@C:\Documents and Settings\michael\Local Settings\Application Data\Microsoft\Windows NT\NTBackup\data\Production Backup.bks" /n "%dtt%" /d "%dtt%" /v:no /r:no /rs:no /hc:on /m normal /j "Production Backup" /l:s /p "DLT"
 
  exit

No comments:

Post a Comment