You can prevent rust forming by pouring some engine oil into the spark plug hole. You should do this when you are planning not to use your generating set for a while (e.g. winter). The oil prevents rust forming and makes sure the piston will not jam.