The principle of using batteries as backup power