File, Export Library
That will export all your music database into an XML file.
In that file will be a location marker, after you bring your computer back, change that location to wherever you back your music up to, using a simple find/replace in a text editor.
This may erase your play counts but it will keep everything else.