Maintaining backup battery systems for maximum usage and reliability