A pretty good article at Wikipedia
Here.
Like many other ways of dealing with the distant past, ice cores can be accurate only to a point. But they are not bad as these things go, and scientists have confirmed these methods by comparing recent ice core measurements with more conventional methods of historical climate measurement (tree rings, etc.)
