Discussion Locked

Sheduled Backup with Win 2000 Server

0 helpful
12 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I'm trying to schedule a backup using a batch file in Windows 2000 Server. I've created the batch file and it runs fine when I double click it or call it from the command prompt. The trouble is I'm trying to run it as a schedule using "Scheduled Tasks" nothing happens. I've also tried running NTBACKUP and creating a scheduled task from there but the same thing happens - in fact I can't get anything to run from the scheduler program. I've just installed 2000 Server from scratch as a PDC and installed Service Pack 2. I've also tried using different users to run the job but no difference. What am I doing wrong???

12 replies

by robinarm

Tried most of you suggestions first before posting the question. Tried them again anyway but no help.

by maxwell edison

.
.
Another consideration:.

Limit Names to Eight Characters

You can limit names to eight (8) capital characters when passing them to a batch file. How you do it depends on whether you're using Windows 2000 or Windows Me.

1. Window 2000
When using Windows 2000 you can use the SET command to extract a substring from an environment variable.

Use the comman SET result=%original:~0,8% to set the variable result to 8 characters of the value of the variable Original, starting at the 0th (first) character, but without capitalizing the result.

Maxwell

by maxwell edison

.
.
Yet another possibility:

According to Microsoft article Q216789 titled, "BUG: NTBackup Cannot Back Up Individual Files from a Batch File or by Using a Command Prompt"

When you run NTBackup from the command line or from a batch file, and you specify a single file to be backed up, (for example: ntbackup backup c:\xfer\test.txt /D "Test One" /l "c:\backup.log"), you will consistently get the following error condition:

You do not have permission to access portions of specified path\filename .

CAUSE:
By design, NTBackup can only back up directories when using a batch file or through a command prompt.

RESOLUTION:
To work around this problem, specify the directory in which the file you want to back up resides, for example:

ntbackup backup c:\xfer /d "Test Two" /l "c:\backup.log"

Source:

http://support.microsoft.com/directory/article.asp?ID=KB;EN-US;Q216789

(Don't forget to REMOVE those pesky SPACES from the pasted URL)

Regards,

Maxwell

by robinarm

Tried most of these suggestions first before posting the question. Tried them again anyway but no help.

by vigo98

Make sure that Task Scheduler is started and set to start on system startup.
It's the service that System scheduler is using to run progs.
Go to services and check Task Scheduler
hope this helps,
Victor

This discussion is closed to new replies.