Discussion Locked

nt backup

0 helpful
15 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

how to use the AT command properly in a batch file in a batch file to run ntbackup

sample please

15 replies

by phil mcse/mcp+i

'at 23:00 "C:\Winnt\System32\ntbackup backup C: /v' where 23:00 is the time the operation is to run, followed by the program to run (ntbackup), backup operation (backup), path to be backed up (C:), and options (/v = verify, /a = append, /b = backs up registry, etc). Type

by jp.jacoby

Have a look in the Help file, it's well documented.
But better forget it and get a product as Arcserve wich gives you much more reliability security and manageability.

by jmakamson

NTBackup sucks!!! I agree with the other comment. Get a real backup program you will be glad you did. Used it and paid for it, now i am too using ArcservIT and I love it.

by phigginson

You must start de Scheduled service with a admin Account (with grant to log as a service on this machine)

For Example
Create a batch file "back.bat" with
ntbackup backup d:\ /hc:on /L "D:\Backup_report.log" /e
ntbackup eject

At the commandline of your nt machine
at 21:00 /every:M,T,W,Th,F "d:\bat\back.bat"

Attention if yo need more than one tape, don't use AT command to start ntbackup. In this case you never receive de POPUP to invite you to insert new tape, and you must kill NTBACKUP via Task Manager.

Good luck.

Pascal Higginson

by a.douwes

First of all start the schedular service on the server that will run the NTBackup.
Create your backup script:
E.g.
CD C:\winnt\system32ntbackup backup C:\ D:\ /v /hc:on /d "Full Backup" /b /t normal /l "C:\backup\backup.log"
ntbackup eject
this script will do a full backup of drives C: and D: and use the hardware compression.
Hope this helps.

by rogued,mcse

The easiest and cheapest way to accomplish is install IE 5. After you install IE 5, go to my computer and you will see a folder at the bottom named "Scheduled Tasks." Close the My Computer window. Now open a blank text document and type the following: ntbackup backup c:\ "any other local drives" "anyother mapped network drives" /b /hc:on /t normal /l c:\winnt\backup\archive.log /e /tape:0
use the help file to learn what the parameters mean. Save this file in a new folder "Backup" in the C:\Winnt\system folder
- Now go back to "Scheduled Tasks" and run new task. Follow the wizard. When it asks what program to run click browse and locate the newly created folder. It's that easy!

Doug Taylor, MCSE
Network Administrator

by liebenberg

If I was you I would not even attempt it as it for all practical reasons impossible. I know that sounds a bit strange but there are other backup programs out there that is alot easier to schedule and a lot simpler to operate. Alot of companies thesedays ship their own make of Backup program with the tape backup device when you buy it. On another note NTbackup cannot backup any open files. You have to close the file before you can back it up. This is another area where other programs are better.

This discussion is closed to new replies.