Re: SMS 2003 - afterbackup.bat



You could add some error handling to your vbscript and catch the error.

One random theory I can think of is that maybe the afterbackup.bat runs
in the system context of the server, whereas when you run the script it's
with your privs. So when run automatically it's getting 'access denied'
(error code 5) from the other server. If so, you probably need to add the
computer account of the server running the script to the share privileges on
the server receiving the backup.

--
This posting is provided "AS IS" with no warranties, and confers no rights.

<buketwhite@xxxxxxxxx> wrote in message
news:1122895507.111532.288410@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi
> I wrote a vb script to do a copy of the backup snapshot for 7
> consecutive days to another server.
> So the afterbackup.bat file calls the vbscript that I wrote.
> I copied the afterbackup.bat file and the vbscript to the
> SMS\inboxes\smsbkup.box folder. Then I scheduled the SMS backup to run.
> I looked in the smsbkup.log file, and I can see that the backup ran
> successfully and then it started the afterbackup.bat file. But it
> didn't do the copy!
> If I run the afterbackup.bat file from the command line it works fine.
> So why doesn't it run when the backup runs?
>
> Any help much appreciated.
>
> Thanks
>


.



Relevant Pages

  • Re: Automatic shutdown
    ... backup server via xinetd. ... So the client has to wait until the server ... autofs script has no capability to wake up machines on request). ... The advantage of a little bit of scripting is that adding extra machines ...
    (alt.os.linux.suse)
  • Re: Add second Print Server
    ... It is from our script bu it stripped out things, ... I like the vbscript solution. ... quick vbscript to change some users to a different print server? ... their workstation so they can switch themself. ...
    (microsoft.public.windows.server.general)
  • Re: Scripting removal of app mappings.
    ... >> I would like to script out removing certain application mappings from IIS. ... You cannot restore a metabase backup from one server to another. ...
    (microsoft.public.inetserver.iis.security)
  • Re: running backup
    ... The script is as follows: ... # script to automate the backup of the Ruby server to the W2K3 server ... backup file to the server? ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Backup Permissions Problem
    ... find a group specific to Windows 2000 Server. ... imbedded MS backup program to back up the entire system each evening. ... script then emails me the log file so I can see how the backup went. ... You do not have permission to access portions of System ...
    (microsoft.public.windows.server.general)