Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems with backup

Status
Not open for further replies.

spdracer50

IS-IT--Management
Apr 26, 2011
2
US
Hi Everyone,

I work at a small company doing IT support. I'm using Micorosoft Server 2003 backup utility to back up the server. I do differential backups nightly and one full back up weekly.

The problem I'm having is that the backup keeps getting overwritten. The differential for instance overwirtes the previous nights backup.

I would like to set it so that I can have multiple backups to choose from if I ever wanted to do a restore.

Can you please help?

 
Perhaps here some ideas
Unmanaged Method, Example 2
This script adds current date to filename, so every backup file will be kept. Only problem is, you should manually delete old backup files or write script for this.

===
Karlis
ECDL; MCSA
 
Thanks karlisi,

The info was very helpful but, in example 2 it refers to a tape backup. How would I modify that script to do a back up to another hard drive?




echo off
rsm.exe refresh /LF"HP C1537A SCSI Sequential Device"
sleep 30
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 "@C:\Documents and Settings\Administrator\Local Settings
\Application Data\Microsoft\Windows NT\NTBackup\data\Daily.bks"
/n "%computername%-%dtt%" /d "daily %dtt%" /v:yes /r:no /rs:no /hc:eek:n
/m normal /j "daily %dtt%" /l:f /p "4mm DDS" /UM
rsm.exe eject /PF"%computername%-%dtt% - 1" /astart
exit
 
For backup to disk you don't need rsm commands and you should replace tape path to file path.
Code:
  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 "@C:\Documents and Settings\Administrator\Local Settings\Application Data\Microsoft\Windows NT\NTBackup\data\Daily.bks" /n "%computername%-%dtt%" /d "daily %dtt%" /v:yes /r:no /rs:no /hc:off /m normal /j "daily %dtt%" /l:f /f "X:\mybackups\daily-%dtt%.bkf"
  exit
More you can read in ntbackup help (type 'ntbackup /?' on command prompt).

===
Karlis
ECDL; MCSA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top