Hello, > Sorry for the delayed response.
What should I say, then... > * Adam Porter <[EMAIL PROTECTED]> [2008-02-16 23:41-0500]: >> >> When using backupninja on a laptop, it would be nice to be able to >> choose to not run certain jobs when off AC power. I don't want to use >> my limited battery power running a backup, I'd rather wait until I >> plug the system in. > This is a very good idea. Agreed. >> I have modified backupninja to check if a job is not supposed to be >> run on battery power, and if not, if the system is on battery power. >> It checks for a "runonbattery" option (which defaults to "yes") in the >> main section of each backup job's config file in /etc/backup.d, and >> uses "acpi -a" and grep to check the power status. > Good approach, we will need to Recommend/Suggest on the package that > includes the /usr/bin/acpi binary (acpi). Well, that’s a good starting point, but... a bit too ad-hoc for my taste. There are not only ACPI laptops, but also APM, PMU, and maybe some more. IMHO, a more generic way should be used to tell if the box is running on battery power. Does Debian, or the Linux kernel, already provides a generic interface for this ? If not, maybe another program / lib already does this. If not, we may have to invent our own wheel. >> I'm not sure of the right way to supply a diff, so I will attach >> /usr/sbin/backupninja, changed from 0.9.4-6ubuntu4 (on my laptop, >> which runs Ubuntu...Debian on my desktop, but I don't run it without >> it being plugged in, of course). The changes are the adding of lines >> 276-291. Then the default config file should be updated, and >> ninjahelper too, I guess, though that's over my head right now. > It doesn't look like there was anything attached to this. The best way > to provide a diff would be to take the most current version from the svn > trunk and do a unified diff against that and then send that. Adam’s modified script[1] has been attached to the related Launchpad entry[2]. [1] http://launchpadlibrarian.net/12045160/backupninja [2] https://bugs.launchpad.net/ubuntu/+source/backupninja/+bug/192560 Bye, -- intrigeri <[EMAIL PROTECTED]> | clé gnupg @ http://gaffer.boum.org/intrigeri/intrigeri.asc | Que signifie ce pardon que tu me demandes ? | Faut-il toujours que tu cherches à être jugé-e ? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

