| Author |
Message |
David Elders
Guest
|
Posted:
Fri Jan 07, 2005 12:33 am Post subject:
Backup runs manually OK, needs input when scheduled? |
|
|
Hi all,
Strange backup program has *appeared*...
SBS2K - fully patched and up-to-date with service packs etc [checked
manually in addition to using HFNetChk Pro]
Trend CSM Suite for SMB - again, fully up-to-date
Using NTBackup command-line within a scheduled batch file to carry out
nightly backups to DAT. Working fine until recently when it basically
stopped doing the nightly backup. If we logged onto the Server we'd find
NTBackup sitting there waiting for a prompt relating to it being OK to use
this media [or similar, I know I know - mental note to self, screenshot the
error before posting in future!].
If I logon to the Server and run the same batch file manually however, it
works fine without any user intervention being required. This only seems to
happen when the Server is logged off... the scheduled task is configured to
use the Administrator account to run.
Anyone got any ideas?
Cheers,
David |
|
| Back to top |
|
 |
Marina Roos [SBS-MVP]
Guest
|
Posted:
Fri Jan 07, 2005 12:54 am Post subject:
Re: Backup runs manually OK, needs input when scheduled? |
|
|
Hi David,
Did you have a look at the commandline options for NTBackup? Try /um.
--
Regards,
Marina
Microsoft SBS-MVP
One of the Magical M&M's
"David Elders" <david_elders@hotmail.com.nospam> schreef in bericht
news:OMUHJ5B9EHA.960@TK2MSFTNGP11.phx.gbl...
| Quote: | Hi all,
Strange backup program has *appeared*...
SBS2K - fully patched and up-to-date with service packs etc [checked
manually in addition to using HFNetChk Pro]
Trend CSM Suite for SMB - again, fully up-to-date
Using NTBackup command-line within a scheduled batch file to carry out
nightly backups to DAT. Working fine until recently when it basically
stopped doing the nightly backup. If we logged onto the Server we'd find
NTBackup sitting there waiting for a prompt relating to it being OK to use
this media [or similar, I know I know - mental note to self, screenshot
the
error before posting in future!].
If I logon to the Server and run the same batch file manually however, it
works fine without any user intervention being required. This only seems
to
happen when the Server is logged off... the scheduled task is configured
to
use the Administrator account to run.
Anyone got any ideas?
Cheers,
David
|
|
|
| Back to top |
|
 |
David Elders
Guest
|
Posted:
Fri Jan 07, 2005 3:16 am Post subject:
Re: Backup runs manually OK, needs input when scheduled? |
|
|
Hi Marina,
The relevant command lines in the batch file are:
for /f "Tokens=1 Delims=/ " %%i in ('date /t') do set daytag=%%i
for /f "Tokens=2-4 Delims=/ " %%i in ('date /t') do set datetag=%%i/%%j/%%k
for /f "Tokens=1" %%i in ('time /t') do set timetag=%%i
set dtt=%timetag% on %daytag% %datetag%
C:\WINNT\system32\ntbackup.exe backup "@C:\backup\Daily_Server_Backup.bks"
/n "%computername% %dtt%" /d "%computername% %dtt%" /r:no /rs:no /hc:on /m
normal /j "%computername% %dtt%" /l:s /v:yes /p "4mm DDS" /um
C:\WINNT\system32\rsm.exe eject /PF"%computername% %dtt% - 1" /astart
I seem to recall from somewhere that the /um switch cannot be used in
conjunction with certain other command line switches mind you. Will try to
find the relevant information [once my memory kicks back in] and see if
perhaps something else is 'cancelling it out'?
Strange thing is that I cannot think how this [or any other switch] would
necessarily have any different effect when the batch file with these command
line entries works when invoked manually but needs user prompt 'feedback'
when ran as a scheduled task...
Thanks,
David
"Marina Roos [SBS-MVP]" <marina@roos.nodontwantspam.nl.com> wrote in message
news:e0t7MFC9EHA.2112@TK2MSFTNGP14.phx.gbl...
| Quote: | Hi David,
Did you have a look at the commandline options for NTBackup? Try /um.
--
Regards,
Marina
Microsoft SBS-MVP
One of the Magical M&M's
"David Elders" <david_elders@hotmail.com.nospam> schreef in bericht
news:OMUHJ5B9EHA.960@TK2MSFTNGP11.phx.gbl...
Hi all,
Strange backup program has *appeared*...
SBS2K - fully patched and up-to-date with service packs etc [checked
manually in addition to using HFNetChk Pro]
Trend CSM Suite for SMB - again, fully up-to-date
Using NTBackup command-line within a scheduled batch file to carry out
nightly backups to DAT. Working fine until recently when it basically
stopped doing the nightly backup. If we logged onto the Server we'd find
NTBackup sitting there waiting for a prompt relating to it being OK to
use
this media [or similar, I know I know - mental note to self, screenshot
the
error before posting in future!].
If I logon to the Server and run the same batch file manually however, it
works fine without any user intervention being required. This only seems
to
happen when the Server is logged off... the scheduled task is configured
to
use the Administrator account to run.
Anyone got any ideas?
Cheers,
David
|
|
|
| Back to top |
|
 |
David Elders
Guest
|
Posted:
Fri Jan 07, 2005 3:22 am Post subject:
Re: Backup runs manually OK, needs input when scheduled? |
|
|
Found it...
"You must use the /P switch to designate a device-type media pool when you
use the /UM switch so that Backup searches for the appropriate type of media
(for example, 4mm DDS)."
....but that's already in there anyway so I guess that's not it?
The backup routine is basically cribbed from the www.smallbizserver.net
examples and just amended for our own servername and backup filename.
Dunno if I'm heading down one of those 'getting more confused instead of
less' ones here! :-) We'll get there in the end no doubt!
Cheers again,
David
"David Elders" <david_elders@hotmail.com.nospam> wrote in message
news:eT0bwTD9EHA.2192@TK2MSFTNGP14.phx.gbl...
| Quote: | Hi Marina,
The relevant command lines in the batch file are:
for /f "Tokens=1 Delims=/ " %%i in ('date /t') do set daytag=%%i
for /f "Tokens=2-4 Delims=/ " %%i in ('date /t') do set
datetag=%%i/%%j/%%k
for /f "Tokens=1" %%i in ('time /t') do set timetag=%%i
set dtt=%timetag% on %daytag% %datetag%
C:\WINNT\system32\ntbackup.exe backup "@C:\backup\Daily_Server_Backup.bks"
/n "%computername% %dtt%" /d "%computername% %dtt%" /r:no /rs:no /hc:on /m
normal /j "%computername% %dtt%" /l:s /v:yes /p "4mm DDS" /um
C:\WINNT\system32\rsm.exe eject /PF"%computername% %dtt% - 1" /astart
I seem to recall from somewhere that the /um switch cannot be used in
conjunction with certain other command line switches mind you. Will try to
find the relevant information [once my memory kicks back in] and see if
perhaps something else is 'cancelling it out'?
Strange thing is that I cannot think how this [or any other switch] would
necessarily have any different effect when the batch file with these
command line entries works when invoked manually but needs user prompt
'feedback' when ran as a scheduled task...
Thanks,
David
"Marina Roos [SBS-MVP]" <marina@roos.nodontwantspam.nl.com> wrote in
message news:e0t7MFC9EHA.2112@TK2MSFTNGP14.phx.gbl...
Hi David,
Did you have a look at the commandline options for NTBackup? Try /um.
--
Regards,
Marina
Microsoft SBS-MVP
One of the Magical M&M's
"David Elders" <david_elders@hotmail.com.nospam> schreef in bericht
news:OMUHJ5B9EHA.960@TK2MSFTNGP11.phx.gbl...
Hi all,
Strange backup program has *appeared*...
SBS2K - fully patched and up-to-date with service packs etc [checked
manually in addition to using HFNetChk Pro]
Trend CSM Suite for SMB - again, fully up-to-date
Using NTBackup command-line within a scheduled batch file to carry out
nightly backups to DAT. Working fine until recently when it basically
stopped doing the nightly backup. If we logged onto the Server we'd find
NTBackup sitting there waiting for a prompt relating to it being OK to
use
this media [or similar, I know I know - mental note to self, screenshot
the
error before posting in future!].
If I logon to the Server and run the same batch file manually however,
it
works fine without any user intervention being required. This only seems
to
happen when the Server is logged off... the scheduled task is configured
to
use the Administrator account to run.
Anyone got any ideas?
Cheers,
David
|
|
|
| Back to top |
|
 |
|
|
|
|