BUG: NTBackup Cannot Back Up Individual Files from a Batch File or by Using a Command Prompt (216789)



The information in this article applies to:

  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Professional
  • Microsoft Windows NT Server 4.0
  • Microsoft Windows NT Workstation 4.0

This article was previously published under Q216789

SYMPTOMS

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"
				

STATUS

Microsoft has confirmed that this is a problem in Windows NT version 4.0.

MORE INFORMATION

The Backup.log file will look similar to the following:

Backup Status
Tape Name: "Tape created on 1/21/99"
Backup of "C:"
Backup set #1 on tape #1 ONE"
Backup Method: Normal
Backup started on 1/21/99 at 5:21:03 PM.
Directory C:
Directory C:\xfer
You do not have permission to access portions of xfer\test.txt.
Please see the owner or administrator to get permission.
Backup completed on 1/21/99 at 5:21:03 PM.
Backed up 0 files in 2 directories.
Processed 2,344 bytes in 1 second.


For additional information, please refer to the online help for Microsoft Windows NT NTBackup.

Modification Type:MajorLast Reviewed:5/14/2003
Keywords:kbbug KB216789