Free Power Tools Brochure
Get Mark Minasi's
17-page guide today!



      

advertisement

Get Newsletters

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

Subscribe Now!

April 12, 2000 06:12 PM

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

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

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?


ARTICLE TOOLS

Add a Comment

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

windows 7 profile removal

Does anyone know of a script that will delete all domain profiles or all if easier upon reboot? With XP I used to do this with Delprof. I know there i...222-96223

advertisement

GOOGLE LINKS
SPONSORED LINKS
FEATURED LINKS

Podcasts

To successfully implement virtual desktops, IT administrators must carefully match user requirements to specific desktop technologies. Listen to this podcast to learn what you need to keep in mind when formulating your approach to desktop virtualization.

Downloads

PacketTrap IT is a comprehensive and affordable network management and application monitoring solution that solves problems associated with bandwidth, network and application performance, and connectivity. Gain insight into your network - try PacketTrapIT free for 21 days!

Web Seminars

Aside from its employees, data is an organization’s most important resource. Join Windows technical specialist and 11-time MVP John Savill to learn the best practices for managing data using features in Windows Server.
View this web seminar on demand!

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.