Answer:
Regularly make a backup of your iPod. If all the iTunes library information is gone, you won't be able to sync your iPod, but if you keep a backup of your iPod music, you just need to retrieve the backup and then you have all your music back.
To discover some applications that can do this, take a look to the links section.