I have a backup script which is run daily by Anacron. It can take around 3 hours to complete.
I'm happy for Anacron not to commence the script if the laptop is running on batteries, but once started, I don't want it to be terminated if battery mode commences, since doing so leaves me with an incomplete backup and a false sense of security. The backup uses rsnapshot, which rotates the backups.
How can I disable Anacron's monitoring of power mode for running jobs (or otherwise work around this behaviour)?
I'm running Kubuntu 12.04.2.