Subscribe to Windows IT Pro

 

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

April 12, 2000 12:00 AM

JSI Tip 2265. How do I perform an NTBackup in Windows 2000, without having to manually manage the media?

Windows IT Pro
InstantDoc ID #73586
Rating: (1)

The RSM (Removable Storage Management) causes you to manually
manage media, when performing a NTBackup to removable media (Tape, Jazz, etc.).
Here is how I have automated the process:

1. If you are just getting started, manually Prepare all you media.

2. Use the NTBackup GUI to create and schedule the backup operations with the options
that you require.

3. Use Scheduled Tasks to open the Properties of your backup jobs and
    cut the Run text to a batch file. Change the Run
text to the full path to that batch file and modify the Start in to that folder.

4. Edit the batch file and modify the the NTBackup command to generate date/time
identifiers, per the enclosed example.

5. Add /UM to the end of the NTBackup switches,
    to allow NTBackup to overwrite whatever media you have mounted.

6. Add a RSM refresh command to the beginning of the batch,
    to cause RSM to be aware of the new media. You must allow this command time to complete.
    I use the Resource Kit Sleep command.

7. Add a RSM eject command to the end of the batch.

With the above changes, I perform the following activities every morning:

1. Check the Event log for any errors.

2. File the ejected tape in it's container.

3. Insert tonights tape and label it's container.

Here is my nightly differential backup batch:

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%
ntbackup.exe backup "@C:\Documents and Settings\Jerry\Local Settings\Application Data\Microsoft\Windows NT\NTBackup\data\ALL.bks" 
       /n "JSI001 %dtt%" /d "JSI001 %dtt%" /v:yes /r:no /rs:no /hc:on /m differential /j "%dtt%" /l:f /p "4mm DDS" /UM
rsm.exe eject /PF"JSI001 %dtt% - 1" /astart
exit
Here is my weekly normal batch:
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%
ntbackup.exe backup "@C:\Documents and Settings\Jerry\Local Settings\Application Data\Microsoft\Windows NT\NTBackup\data\ALL.bks" 
       /n "JSI001 %dtt%" /d "JSI001 %dtt%" /v:yes /r:no /rs:no /hc:on /m normal /j "%dtt%" /l:f /p "4mm DDS" /UM
rsm.exe eject /PF"JSI001 %dtt% - 1" /astart
exit

NOTE: See Windows 2000 NTBackup command line switches.

NOTE: See More on Windows 2000 backup command-line switches.

NOTE: See How do I use the command line for Removable Storage?

NOTE: See What media do I have in my tape library?

NOTE: See Scheduled Backup will NOT use media in the Import pool?

NOTE: See How can my scheduled Ntbackup react to my failure to insert a tape in the tape drive?

NOTE: See How do I Deallocate the mounted tape in a command script?


Related Content:

ARTICLE TOOLS

Comments
    There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

White Papers

Get your Windows 7 deployment off to the right start by implementing PC lockdown. A locked-down environment is easier and cheaper to support since users are less likely to make unnecessary changes to the core system configuration - read more here!

Essential Guides

Is your iSCSI "lossy"? The reality is that most off-the-shelf Ethernet hardware deployed for iSCSI can lose packets, resulting in slow performance or application downtime. Learn how to assess your current iSCSI infrastructure and engineer an advanced iSCSI SAN infrastructure.

Web Seminars

What's the best way to keep your network safe from malware? In this web seminar, security expert Greg Shields suggests an alternative method to the traditional blacklisting approach that is common with anti-virus and anti-malware solutions.

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.