Outdoor backup power supply with solar charging function