Schedule Backups

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi
I have some scheduled backups, that backup a w/s to a mapped netork drive
using NTBackup. They only seem to work if a particular user with admin rights
is logged in. If another user is logged in, or if no-one is logged in the
task fails to run in theschedule; or even if I right click the schedule task
and go run.
(However if I open the schedule task, copy the command into a file and save
as a .bat it will run whoever I am logged in as. Hence I think the script is
good.)
Any ideas
TIA
Lewej
 
Lewej said:
Hi
I have some scheduled backups, that backup a w/s to a mapped netork drive
using NTBackup. They only seem to work if a particular user with admin rights
is logged in. If another user is logged in, or if no-one is logged in the
task fails to run in theschedule; or even if I right click the schedule task
and go run.
(However if I open the schedule task, copy the command into a file and save
as a .bat it will run whoever I am logged in as. Hence I think the script is
good.)
Any ideas
TIA
Lewej

You took the first step in resolving your problem, by copying
the command line into a batch file. You should now take the
second step, by actually ***scheduling*** the following
batch file to run:

@echo off
echo %date% %time% Start of task > c:\test.log
dir \\YourServer\MappedDrive 1>>c:\test.log 2>c:\test.err
echo %date% %time% 1>\\YourServer\MappedDrive 2>>c:\test.err
echo User=%UserName%, Path=%path% >> c:\test.log
%systemroot%\system32\ntbackup.exe /.. /.. 1>>c:\test.log 2>>c:\test.err
echo %date% %time% End of task >> c:\test.log

Examine the two log files and all will become clear! Perhaps
the cause is as simple as you not mapping the drive you're
trying to back up to.
 
Hi Pegasus
maybe I am too blonde to work in IT - I keep missing the obvious.
Cheers
Lewej
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top