Re: [Bacula-users] Backing up OS X and Windows clients and keeping them awake

2014-02-05 Thread Peter Wood
This worked. Thank you Joe. I still used the caffeinate command since 'pmset noidle' is deprecated but I removed the space between & and >. -- Peter On Wed, Feb 5, 2014 at 2:14 PM, Joe Rhodes wrote: > Peter: > > If you run caffinate on 10.9, it runs in the foreground. Same with "pmset > noid

Re: [Bacula-users] Backing up OS X and Windows clients and keeping them awake

2014-02-05 Thread Joe Rhodes
Peter: If you run caffinate on 10.9, it runs in the foreground. Same with “pmset noidle” command. You have to take some measures to get it to run in the background on the client. This took a little fooling around on my part before I got it right. Here’s what I use in my bacular-dir.conf: C

Re: [Bacula-users] Backing up OS X and Windows clients and keeping them awake

2014-02-05 Thread Peter Wood
On Tue, Jan 21, 2014 at 3:25 PM, Joe Rhodes wrote: > Sorry, turns out there was an error in my previous suggestion and > "caffeinate" was not actually started on the client. Here's an updated > (and tested) line that does keep a 10.8 or later mac awake for 3600 > seconds: > > Client Run Before

Re: [Bacula-users] Backing up OS X and Windows clients and keeping them awake

2014-02-02 Thread Kern Sibbald
Hello Joe, Thanks for the information. I will take a careful look at it, but for the moment don't promise anything. Changing APIs from one version to another is *very* annoying. It makes programming harder. Hopefully they will stabilize it in 10.7. Best regards, Kern On 01/30/2014 03:34 PM,

Re: [Bacula-users] Backing up OS X and Windows clients and keeping them awake

2014-01-31 Thread Steve Ellis
There may be a better solution, but I've been using a script of my own devising to wake and keep (at least Windows) machines awake during a backup. I didn't know if there was a client-side API to call to keep the machine awake, so I implemented mine as repeated WoL packets (say, once every 5 minut

Re: [Bacula-users] Backing up OS X and Windows clients and keeping them awake

2014-01-30 Thread Dimitri Maziuk
PS. (I just did a BIOS update on one of our old SuperMicros) To make it more fun there's the level of ACPI support in your kernel, with whatever fixes and patches you distro vendor backported to it and whatever compile-time options they chose to not enable -- e.g. RedHat is notorious for shipping

Re: [Bacula-users] Backing up OS X and Windows clients and keeping them awake

2014-01-30 Thread Dimitri Maziuk
On 1/30/2014 9:57 AM, Levie, Jim wrote: > What were you using? I've used etherwake on a variety of 12-14 year old boxes > successfully. Sun Fire v20 and x4100 didn't report their power state correctly and wouldn't reliably wake up. I'm not sure about our old SuperMicros -- but since I couldn't

Re: [Bacula-users] Backing up OS X and Windows clients and keeping them awake

2014-01-30 Thread Levie, Jim
On Jan 30, 2014, at 9:42 AM, Dimitri Maziuk wrote: > On 1/30/2014 7:16 AM, Josh Fisher wrote: > >> Perhaps the >> pm_utils source sheds some light on how a daemon could prevent a >> system-wide suspend. > > Last time I tried I couldn't even get our older machines to WOL. I > suspect whatever solu

Re: [Bacula-users] Backing up OS X and Windows clients and keeping them awake

2014-01-30 Thread Joe Rhodes
Kern: I no very little about programming, but here’s the documentation for creating and releasing a power assertion on OS X. There is a call “IOPMAssertionCreate” which is available in 10.5, then deprecated in 10.6. Seems it was replaced with “IOPMAssertionCreateWithDescription” which came in

Re: [Bacula-users] Backing up OS X and Windows clients and keeping them awake

2014-01-30 Thread Dimitri Maziuk
On 1/30/2014 7:16 AM, Josh Fisher wrote: > Perhaps the > pm_utils source sheds some light on how a daemon could prevent a > system-wide suspend. Last time I tried I couldn't even get our older machines to WOL. I suspect whatever solutions there are would only work on some (perhaps many) recent

Re: [Bacula-users] Backing up OS X and Windows clients and keeping them awake

2014-01-30 Thread Josh Fisher
On 1/29/2014 1:24 PM, Dimitri Maziuk wrote: > On 01/29/2014 10:26 AM, Josh Fisher wrote: > >> ... The question >> is, how do you inform Linux and OSX that a daemon is to be considered >> active even if it would otherwise fall into the category of inactive >> because, say, there is an open TCP socke

Re: [Bacula-users] Backing up OS X and Windows clients and keeping them awake

2014-01-29 Thread Dimitri Maziuk
On 01/29/2014 10:26 AM, Josh Fisher wrote: > ... The question > is, how do you inform Linux and OSX that a daemon is to be considered > active even if it would otherwise fall into the category of inactive > because, say, there is an open TCP socket, but there has not been any > network traffic

Re: [Bacula-users] Backing up OS X and Windows clients and keeping them awake

2014-01-29 Thread Josh Fisher
On 1/28/2014 9:05 AM, Phil Stracchino wrote: > On 01/28/14 08:29, Kern Sibbald wrote: >> Hello, >> >> The next Windows version to be released by Bacula Systems roughly in >> June -- it will >> be version 8.0 tells the Windows OS not to suspend the SD during a job. >> >> For OSX, I don't know if an

Re: [Bacula-users] Backing up OS X and Windows clients and keeping them awake

2014-01-28 Thread Phil Stracchino
On 01/28/14 08:29, Kern Sibbald wrote: > Hello, > > The next Windows version to be released by Bacula Systems roughly in > June -- it will > be version 8.0 tells the Windows OS not to suspend the SD during a job. > > For OSX, I don't know if an OS API exists to do this -- on Linux, it > doesn't s

Re: [Bacula-users] Backing up OS X and Windows clients and keeping them awake

2014-01-28 Thread Kern Sibbald
Hello, The next Windows version to be released by Bacula Systems roughly in June -- it will be version 8.0 tells the Windows OS not to suspend the SD during a job. For OSX, I don't know if an OS API exists to do this -- on Linux, it doesn't seem to have one, which means that it is not so simple.

Re: [Bacula-users] Backing up OS X and Windows clients and keeping them awake

2014-01-27 Thread Josh Fisher
On 1/21/2014 6:25 PM, Joe Rhodes wrote: > Sorry, turns out there was an error in my previous suggestion and > “caffeinate” was not actually started on the client. Here’s an updated (and > tested) line that does keep a 10.8 or later mac awake for 3600 seconds: > > Client Run Before Job = "bash

[Bacula-users] Backing up OS X and Windows clients and keeping them awake

2014-01-21 Thread Joe Rhodes
Sorry, turns out there was an error in my previous suggestion and “caffeinate” was not actually started on the client. Here’s an updated (and tested) line that does keep a 10.8 or later mac awake for 3600 seconds: Client Run Before Job = "bash -c \"/usr/bin/caffeinate -i -t 3600 &> /dev/null

Re: [Bacula-users] Backing up OS X and Windows clients and keeping them awake

2014-01-20 Thread Josh Fisher
On 1/19/2014 10:55 PM, Joe Rhodes wrote: For those that are backing up OS X clients, you may have noticed that 10.8 Mountain Lion and later is much more militant about having machines sleep.  Even if you issue a WOL packet to start a ba

[Bacula-users] Backing up OS X and Windows clients and keeping them awake

2014-01-19 Thread Joe Rhodes
For those that are backing up OS X clients, you may have noticed that 10.8 Mountain Lion and later is much more militant about having machines sleep. Even if you issue a WOL packet to start a backup, they still fall back asleep pretty quickly unless there’s someone actually using the mouse and