A man who had lived aboard a boat for four years was rescued after his supplies, especially drinking water, became dangerously low.