Moving the iTunes library file to a new machine

data synchronizationitunes

I have machine x (running Windows) that has my iTunes library file on it in the My Music folder. All the media files in the library are on an external hdd. I use machine x to sync my iPod on a regular basis, and have built up quite a history of songs played, recent songs, etc.

I now want to replace machine x with machine y (also running Windows). Is it a simple case of 1) Installing iTunes on machine y; 2) moving the iTunes library file to the My Music folder on machine y and 3) then connecting the HDD to machine y (ensuring it has the same drive letter)? Then launch iTunes. Will machine y now know about all the song history (like play and skip counts, ratings…) as it was on machine x? The thing I'm most afraid of is sync'ing my iPod on machine y only to have something go nasty wrong and I lose my history?

Any pointers?

Best Answer

In iTunes, on your first machine, you will have to go to File|Library|Export Library. This will generate your Library.xml file.
If you take a look in it, you will see for each file all the fields you will find in iTunes (location on HDD, play count, rating, etc...).

Now, on your new machine, after having installed iTunes, you have to go to File|Library|Import Playlists (not obvious at first as I was looking at an Import Library menu but it doesn't exist) and select the xml file you exported on your first machine.

If you try, as I did first, to edit the xml file and overwrite the newly created one, when launching iTunes, it will delete it and create again an empty new one. You have to go through this Export/Import process (which is quite quick).

PS: you may have to edit the xml file anyway before importing, if the paths to the music files changed from your initial machine. For example, I upgraded from WinXP to Win7. As the user folder path changed, I then had to edit the paths c:\users and documents\myuser\My Documents\My music to c:\users\myuser\Music, or something like that, I don't remember exactly.

PPS: Always keep your exported xml file untouched somewhere until you have everything OK on your new machine...