#771641 backupninja: Add a way to prevent suspend while backups are running

#771641#5
Date:
2014-12-01 05:59:38 UTC
From:
To:
Hi.

It would be great to include a way to disable the computer going to sleep / suspend while a backup is in process.

If backupninja is run on a laptop like machine (or desktop at a nature friendly user), it is likely to start at times when the computer would become unused, and when it will end up soon in suspend mode. Backupninja won't then be able to run very well if backups are to be sent to a remote server.

Hope this helps.

Best regards,

#771641#10
Date:
2014-12-03 08:00:57 UTC
From:
To:
Responding to myself.

I doubt there's a universal way to prevent going to suspend on Debian in Jessie.

At least, with Gnome 3 / gnome shell and systemd, it seems an option is to use systemd-inhibit --what=sleep backupninja to start it.

Hope this helps.

Best regards,