Re: NTbackup problem
- From: "Pegasus" <I.can@xxxxxxx>
- Date: Sat, 19 May 2007 22:12:49 +1000
<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?
.
- Follow-Ups:
- Re: NTbackup problem
- From: stijn . calders
- Re: NTbackup problem
- References:
- NTbackup problem
- From: stijn . calders
- Re: NTbackup problem
- From: Pegasus \(MVP\)
- Re: NTbackup problem
- From: stijn . calders
- NTbackup problem
- Prev by Date: Re: xp cd burner
- Next by Date: Re: Restore Task Manager
- Previous by thread: Re: NTbackup problem
- Next by thread: Re: NTbackup problem
- Index(es):
Relevant Pages
|
Loading