To keep rainbow dung beetles, house them in a fish tank with a mixture of potting soil, organic compost, coco fiber and some sand as substrates. Keep the tank covered and well ventilated. Feed the beetles with soaked dog biscuit.
The best way to care for a dormant (hibernating) beetle is to keep it in the original pupation chamber if it is still intact until the beetle naturally breaks the chamber. The pupation chamber can be kept at where it was. If you have broken the pupation chamber,
place the adult beetle in a 1.5 gal tank filled with 3” of soil/peat moss mixture and some tree barks. Feed the beetle with beetle jelly. Misting regularly using a garden sprayer.