The generator charges the battery when in use and the generator should be started every 7 days per the owner's manual. This properly lubricates the engine, keeps fuel moving through the carburetor to prevent clogging and it charges the battery.
Otherwise, you need to follow the long term storage process according to the manual and then us a trickle charger on the battery to keep it charged.