Re: NTbackup problem
- From: stijn.calders@xxxxxxxxx
- Date: 22 May 2007 23:33:25 -0700
This is the result:
di 22/05/2007 21:59:34,09 Before the backup command
User=administrator, Path=C:\Program Files\Windows Resource Kits\Tools
\;C:\Program Files\Support Tools\;C:\WINDOWS\system32;C:\WINDOWS;C:
\WINDOWS\System32\Wbem
ErrorLevel of NTBackup=87
di 22/05/2007 21:59:37,17 End of ntbackup
Any idea what errorlevel 87 means?
Thanks,
Stijn.
On 19 mei, 14:12, "Pegasus" <I...@xxxxxxx> wrote:
<stijn.cald...@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. SoNTBackupstarts, but fails to make the backup without
writing an error to the log file. My question is: why doesNTBackup
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! Maybentbackup
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.logntbackup/.. /.. 1>>c:\test.log 2>>&1
echo ErrorLevel ofNTBackup=%ErrorLevel% >> c:\test.log
echo %date% %time% End ofntbackup>> 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?- Tekst uit oorspronkelijk bericht niet weergeven -
- Tekst uit oorspronkelijk bericht weergeven -
.
- Follow-Ups:
- Re: NTbackup problem
- From: Pegasus
- Re: NTbackup problem
- References:
- NTbackup problem
- From: stijn . calders
- Re: NTbackup problem
- From: Pegasus \(MVP\)
- Re: NTbackup problem
- From: stijn . calders
- Re: NTbackup problem
- From: Pegasus
- NTbackup problem
- Prev by Date: Control Panel. Add or Remove programs. Huge space has appeared in display. Is there a fix?
- Next by Date: Re: what to do with the files left after XP system restore
- Previous by thread: Re: NTbackup problem
- Next by thread: Re: NTbackup problem
- Index(es):
Relevant Pages
|