Re: Preventing users from powering down clients during backups

Josh Fisher via Bacula-users <[email protected]>
Newsgroups gmane.comp.bacula.user
Message-ID <[email protected]>

On 11/18/24 14:46, Andrea Venturoli wrote:
> Hello.
>
> I'm asking because I'm sure I'm not the first to encounter this problem.
>
> A client is powered on, sooner or later Bacula tries a backup and it 
> finally starts, however it does not complete because the user powers 
> down the machine again.
> How did you solve?

Are you sure they are powering down? In most cases, the client going 
into sleep mode will appear to Bacula as though the machine was powered 
down. Bacula requires a TCP socket that stays up for the entire job. 
When background tasks (such as bacula-fd) do not prevent sleep mode, the 
client enters sleep mode and bacula-fd is paused and/or sleep mode turns 
off the WiFi transmitter.

In most cases the sleep mode issue can be dealt with, but there is no 
way to deal with the user physically powering down the machine, other 
than telling them not to do that.

If you are trying to deal with laptops that users take in and out of the 
office, then look into the "Reschedule On Error" directive for the Job 
resource in the Bacula docs. It can reschedule failed jobs at regular 
intervals, and that might help.

In the user workstation case I've mostly dealt with it by NOT backing up 
user machines. :)  We use a combination of private cloud storage and VPN 
access to file severs for user data, so their laptops don't really need 
backups.

>
> Ideally Bacula would be able to postpone shutdown until the job is 
> finished, but I think I'm asking to much.
> Letting the user know that a backup is running would be better than 
> nothing.
>
> I tried installing tray monitor: I see the black icon and I hoped it 
> would animate or change colour when a job was running; alas, it 
> doesn't. The users would need to click on it and check and it's asking 
> too much on them.
>
> Any idea?
> How are you coping with this scenario?
>
>  bye & Thanks
>     av.
>
>
> _______________________________________________
> Bacula-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bacula-users



_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.