Discussion Locked

NTBackup from Command Line

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Is there a triack to getting NT backup to work form the command line? I follow the usage in the help file, and the routine even creates the BKF file, but it does not put anything into it!

I ned to be able to run this from a command line so that I can start/stop certain services before running the backup.

5 replies

by jeff adams

Using the following command line, almost verbatim right out of the help file, I was able to create a backup of a directory to a designated file.

C:\>ntbackup backup c:\w2ksp2 /j "Command Line Backup" /f "C:\backup.bkf"

The specified directory (c:\w2ksp2) was backed up (NT Backup GUI started and a processing window showed the progress) to the file c:\backup.bkf (~120 MB).

Are you sure that 1) the logged in user has backup authority and 2) the logged in use has write permissions to the backup file location?

-Jeff

by jeff adams

Did you include the @ as part of the backup selection file parameter?

Example:

C:\>ntbackup backup "@C:\ntbackup.bks" /j "Command Line Backup" /f "C:\backup.bkf"

This worked for me. The first time around I forgot the @ and an empty backup file was generated.

-Jeff

This discussion is closed to new replies.