backintime icon indicating copy to clipboard operation
backintime copied to clipboard

Support Wake on LAN

Open buhtz opened this issue 1 year ago • 7 comments

I often read about this use case.

It would be nice if BIT would be able to wake up the server by itself.

Currently this can only be achieved via user-callback, udev or a user defined script using cron.

buhtz avatar Jul 30 '24 08:07 buhtz

I'm not sure why user-callback wouldn't be enough for this. It's a similar situation like mounting a source or target filesystem.

Maybe for a start, we could provide/support a well-tested user-callback script for this task, then see how it might be implemented in BiT itself.

emtiu avatar Jul 30 '24 11:07 emtiu

For some users a user-callback script is a bit "to much". The feature is just about usability.

buhtz avatar Jul 30 '24 11:07 buhtz

For some users a user-callback script is a bit "to much". The feature is just about usability.

IMO, if a callback script is too much, WOL is probably too much also.

fallingrock avatar Sep 05 '24 20:09 fallingrock

IMO, if a callback script is too much, WOL is probably too much also.

How is that? WOL would be a checkbox in the settings dialog and a drop down menu with the currently available machines in the network. And an extra entry to manually add a MAC-Adresse. Sounds much more comfortable than editing a user-callback script.

buhtz avatar Sep 06 '24 06:09 buhtz

WOL would be a checkbox in the settings dialog and a drop down menu with the currently available machines in the network.

Well, that's the rub ... most systems that I've seen that offer a WOL function requires you enter the MAC address of the NIC being used to wake the system up.

Probing for all devices capable of WOL could take a LONG time ... just scanning a network for all devices on my home network (/24 subnet) takes 30-45 seconds. Even if a scan could be performed, can you determine if a system will respond to a WOL request?

fallingrock avatar Sep 10 '24 15:09 fallingrock

If it is an SSH profile we are able to login and extract the MAC directly. :rofl: Of course I can't be sure if the system will respond, maybe WOL is not active in BIOS.

buhtz avatar Sep 10 '24 17:09 buhtz

Of course I can't be sure if the system will respond, maybe WOL is not active in BIOS.

Or what WOL responds to.

fallingrock avatar Sep 10 '24 18:09 fallingrock