Each are efficient, so The solution will mainly rely on why you need a backup electrical power system. Generators are typically less expensive and present additional energy for a longer time frame than solar battery storage, so when you experience Regular, very long outages you will be superior off by using a generator. This is the basic problem