It is better to remove the battery if you're going away for a long time. Also, smear petroleum jelly or grease on the terminals and the wire ends to prevent rusting. Ensure that the battery is fully charged and top up the water level. Store the battery in a cool and dry place, well away from direct sunlight.