Battery backup for cpap machine