Bacula-users

Re: [Bacula-users] Failure Backing Up Windows Client Machine

2014-02-27 17:09:31
Subject: Re: [Bacula-users] Failure Backing Up Windows Client Machine
From: John Drescher <drescherjm AT gmail DOT com>
To: Larry Kemp <Larry.Kemp AT usmetrotel DOT com>
Date: Thu, 27 Feb 2014 17:07:49 -0500
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

------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users