Yes, this happens to people who forgot to backup what they don't want to lose. And, conversely, lose what they don't backup.
That being said, try iRip or any other title coming up from https://www.google.com/search?q=copy+music+from+ipod+to+itunes
Kees
My iTunes music library was erased recently. I spoke to Apple and they tried to find it (searching previous iTunes libraries etc) but couldn't. When I asked how I could upload the music from my iPod (music that I spent hours and hours loading from my CD collection!!) they said it wasn't possible - but surely it can be done?
Can anyone help please

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic