What Will said should work.
I have just backed it up and then copied over a nerw install before and it's works, but that was with version 6 or 7, might not work on 8.
Make sure you get the latest version of itunes BEFORE you back up, or you might be trying to restore an old library structure over a new one. (iTunes sometimes makes changes to the way it stores files).