Link to home
Start Free TrialLog in
Avatar of abailey101
abailey101Flag for United States of America

asked on

NTBackup on Winodows 7

I have copied over NTBackup from an XP machine.  On that XP machine I was running a batch script to backup files and it worked  well.  After coping the three files (NTBackup.exe, vssapi.dll, and ntmsapi.dll) I am able to run a backup sucessfully if i start NTBackup manually.  When I attmpt to run the script that was working on Windows XP NTBackup does start but I am getting the following error:

Event ID 8017 Source: NTBackup

NTBackup error: 'Command Line Problem: A valid backup operation was not specified on the command line.'

The command I am trying to run from the script is:

start /B /WAIT /HIGH C:\NTBackup\NTBackup.exe \\phlms1\c$\intranet  /J "PHLMS1 Intranet %dsdate%"  /F "%BU2%\backup\%dsdate% PHLMS1 Intranet.bkf" /D "%dsdate% PHLMS1" /L:S /M normal /UM

%dsdate% is the date the backup is run and %BU2% is the drive letter to do the backup too and are set prior to the ntbackup running
Avatar of Rob Hutchinson
Rob Hutchinson
Flag of United States of America image

Did you try using the version for Windows 7?

Think this is the Micro$oft link:

http://support.microsoft.com/kb/974674
Avatar of abailey101

ASKER

KB974674 is a restore only utility...

Reading on the internet you should be able to copy ntbackup from an XP system and it will work in Windows 7.

The backup of files does work if I launch NTBackup and use the GUI to select my files and backup location.... It does not work if I try and launch NTBackup from a dos script.
ASKER CERTIFIED SOLUTION
Avatar of abailey101
abailey101
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Corrected Syntax