Re: NTbackup problem




<stijn.calders@xxxxxxxxx> wrote in message
news:1179487653.362463.63910@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Your script assumes that the backup log resides in the current
directory. This is incorrect. You should code your batch file
like so:

cd /d "%UserProfile%\Local Settings\Application Data\Microsoft\Windows
NT\NTBackup\data"
echo F | xcopy /d *.log" "%temp%\Backup.log"

The above code resolves the problem of working out
which backup log is the most recent log file. Your line
of code
rename backup*.log %computername%-%dt%.log
will fail consistently when there is more than one log
file, which is highly likely.- Tekst uit oorspronkelijk bericht niet
weergeven -

It's true what you're saying, but it doesn't help me to correct this
problem. If I check the backup*.log file of the last backup, this file
is empty. So NTBackup starts, but fails to make the backup without
writing an error to the log file. My question is: why does NTBackup
fail in this scheduled job, but doesn't if I run this interactively?

Thanks,
Stijn.


You backup job is probably waiting for some response
for you. In other words, it is still running when you check
the log file. That's why the file is empty! Maybe ntbackup
is asking for some password when backing up folders for
which the current user has no access rights. You can check
this like so:

echo %date% %time% Before the backup command > c:\test.log
echo User=%UserName%, Path=%path% >> c:\test.log
ntbackup /.. /.. 1>>c:\test.log 2>>&1
echo ErrorLevel of NTBackup=%ErrorLevel% >> c:\test.log
echo %date% %time% End of ntbackup >> c:\test.log

Schedule this job, then have a look at c:\test.log. I suspect
that it will tell you a great deal.

BTW, what files or folders are in your selection list?


.



Relevant Pages

  • Re: Backup not running...
    ... built-in backup (ntbackup?) to back up several folders every night. ... I get no error messages in the log file, just no backup ever happens. ... Open the Task Scheduler and copy the ntbackup command line, ...
    (microsoft.public.win2000.general)
  • Re: NTBackup SBS Backup
    ... Is it possible to change the location of the log file like in the old ... > SBS Backup is a Wizard that configures a System Recoverable NT Backup. ... Is Nt backup different than SBS backup? ... >> NTbackup is more robust than SBS Backup.Do they conflict? ...
    (microsoft.public.windows.server.sbs)
  • Re: NTbackup problem
    ... which backup log is the most recent log file. ... If I check the backup*.log file of the last backup, ... My question is: why does NTBackup ... fail in this scheduled job, but doesn't if I run this interactively? ...
    (microsoft.public.windowsxp.general)
  • Re: Verifying Windows Server 2008 backup
    ... What I have done in the past, not that sophisticated, is I have a batch file form my workstation that would do an appropriate DIR command for every server and PC in our network, so I could tell by size and date if backups ran the night before. ... I notice the new backup grabs the disk drive and uses it as a dedicated resource -- it does not even show up in File Explorer. ... My understanding is the log file gets created only on a problem. ... Ntbackup is deprecated. ...
    (microsoft.public.windows.server.general)
  • Re: NTBackup / Compression Issue?
    ... I am using NTBackup ... my backup has started to fail because the tapes are ... which is capable of hardware compression and it is enabled. ...
    (microsoft.public.windows.server.sbs)

Loading