I entered this:
C:\>sc create Bacula-FD binpath= "\"C:\Program Files\Bacula\bacula-fd.exe\" -c \"C:\Program Files\Bacula\bacula-fd.conf\" " type= share start= auto
[SC] CreateService SUCCESS
Under netstat –na | more I saw nothing.
Then I saw the service listed in service.msc but it was not running. When I tried to run it manually it stated, “Could not start Bacula on Local Computer error 1053 The service did not respond to the start or control requests in a timely fashion.”
I am going to go back are read the links in the previous couple emails.
-----Original Message-----
From: John Drescher [mailto:drescherjm AT gmail DOT com]
Sent: Thursday, February 27, 2014 5:08 PM
To: Larry Kemp
Cc: Greg Woods; bacula-users AT lists.sourceforge DOT net
Subject: Re: [Bacula-users] Failure Backing Up Windows Client Machine
On Thu, Feb 27, 2014 at 5:03 PM, John Drescher <drescherjm AT gmail DOT com> wrote:
>> How about:
>>
>> C:\Documents and Settings\lkemp>sc create Bacula-FD binpath=
>> "C:\Program Files\Bacula>bacula-fd.exe" -c "C:\Program Files\Bacula\bacula-fd.conf"
>> type= share start= auto
>>
>
> It seems that it is not easy to pass parameters to sc..
>
> http://stackoverflow.com/questions/3663331/creating-a-service-with-sc-
> exe-how-to-pass-in-context-parameters
>
> Although I think this will do it (using nested quotes - escaping the
> inner quotes):
>
> http://stackoverflow.com/a/11084834/487892
As a result I expect the answer to be exactly:
sc create Bacula-FD binpath= "\"C:\Program Files\Bacula>bacula-fd.exe\" -c \"C:\Program Files\Bacula\bacula-fd.conf\" " type= share start= auto
John