BUG: NTBackup can't backup individual files from a batch file or via a command prompt

ID: Q216789


The information in this article applies to:


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 this to be 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.

Additional query words: ntbackup do not have permission to access portions nt 4.00


Keywords          : kbbug4.00 
Version           : winnt:4.0
Platform          : winnt 
Issue type        : kbbug 

Last Reviewed: February 18, 1999