Hello,

Thanks for the patch.  It looks like it should work.  I'll probably move it to 
Microsoft specific initialization code, probably in 
src/win32/compat/compat.cpp, and make it have a counter so that it turns it 
on for the first job that is running and off when the last job finishes that 
way it will work if multiple jobs run.

Thanks again for the tip and the code.

Best regards,

Kern

On Friday 01 October 2010 16:12:42 Avi Rozen wrote:
> On 10/01/2010 02:29 PM, Kern Sibbald wrote:
> > Hello,
> >
> > Thanks for the pointers to the Windows documentation and the sample
> > Python program.  I wasn't aware that this is a problem, but from the
> > Windows documentation, it looks relatively simple to fix (i.e. integrate
> > into the FD).
>
> I've attached an *untested* patch against current git. It should work (TM).
>
> > Building the Windows binaries is done by cross compiling.  It is
> > documented in detail in <bacula>/src/win32/README.mingw
>
> Read it, and it does look like too much of a hassle at this point.
>
> I should add that an integrated per-client wake-on-lan feature would
> also be useful (I'm currently using a RunBeforeJob directive to wakeup
> the laptop with sudo+etherwake).
>
> Cheers,
> Avi.
>
> > However, it is not easy to setup
> > a complete environment and might possibly take much longer to help you
> > get setup rather than simply implementing it ourselves ...  That said, if
> > you want to try to build it just read the above referrenced instructions
> > -- there are at least 6 people aside from myself who have succeeded in
> > getting it working.
> >
> > I will ensure that this is put on our list of items to do for the next
> > version.
> >
> > Thanks again for your pointers.
> >
> > Kern
> >
> > On Friday 01 October 2010 14:02:23 Avi Rozen wrote:
> >> On 10/01/2010 09:13 AM, Philipp Storz wrote:
> >>> Hello list,
> >>>
> >>> when backing up a windows 7 laptop, I experienced that
> >>> on the long running full backup, it started to hibernate
> >>> and so it interrupted the backup.
> >>>
> >>> I thought that maybe there is a mechanism to tell windows
> >>> "hey, I am busy making a backup, please do not fall asleep"
> >>>
> >>> Do you think that this is possible, and would it be a good
> >>> enhancement to the file daemon?
> >>>
> >>>
> >>> Best regards,
> >>>
> >>> Philipp
> >>
> >> The file daemon should use SetThreadExecutionState [1] to enable/disable
> >> sleeping during backup.
> >>
> >> At the moment, however, I'm using an external Python (w/ Cygwin) script
> >> to do the same via the ClientRunBeforeJob/ClientRunAfterJob directives
> >> (see attached scripts).
> >>
> >> IMHO this should be integrated into the file daemon.
> >>
> >> I'm willing to write a patch for this, but I need some pointers (build
> >> instructions for 64bit would be a good start - I couldn't find this with
> >> a casual search through the manual).
> >>
> >> Avi
> >>
> >>
> >> [1] http://msdn.microsoft.com/en-us/library/aa373208%28v=vs.85%29.aspx
> >>
> >>> -----------------------------------------------------------------------
> >>>-- ----- Start uncovering the many advantages of virtual appliances and
> >>> start using them to simplify application deployment and
> >>> accelerate your shift to cloud computing.
> >>> http://p.sf.net/sfu/novell-sfdev2dev
> >>> _______________________________________________
> >>> Bacula-devel mailing list
> >>> [email protected]
> >>> https://lists.sourceforge.net/lists/listinfo/bacula-devel



------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to