Tip

NT Backup Solution

Ever had troubles with your backup software after you install a new service pack? Here is a simple batch file used in conjunction with the scheduler and Windows NT backup that will reliably backup your Notes servers.

This batch file will create 5 logs for your backups and delete the oldest one. One caveat is that NT will not write anything to tape that was created with another backup program.
@echo off

copy logbackup.004 logbackup.005
copy logbackup.003 logbackup.004
copy logbackup.002 logbackup.003
copy logbackup.001 logbackup.002
copy logbackup.log logbackup.001
del c:logbackup.log
echo Backup Started > c:logdebug.log
net time > c:logdebug.log
NTBACKUP BACKUP C: D: /v /b /d "Server Name Daily Backup" /t NORMAL /l
"C:logbackup.log"
net time > C:logdebug.log
echo ******************** > C:logdebug.log

REM In order for net time to work you must have a date/time server
REM /v verifies the backup /b backups the registry /d gives the log a title /t is the type of backup and /l tells it to write it to a log file

After creating a batch file from the code above you will need to verify that the scheduler is running as a service and is set to automatic. Next you will need to schedule the backup with the "AT" command. You command llne from a DOS prompt should look like:

AT 01:00 /every:M,Tu,W,Th,Fr "Backup.bat" (This will run the backup.bat file located on the root everyday)

To verify that the AT command took place just type AT at the command line and it will give you a list of things that are scheduled.

This was first published in November 2000

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.