Sync iTunes Library

Problem: 2 macs, 2 times itunes, backup itunes music library from one mac to the other:

  • first,quit iTunes on the slave machine and delete library files:
    rm -rf Previous iTunes Libraries rm iTunes Library rm iTunes Music Library.xml
  • second, rsync the MP3s:
    christian@master rsync -ravz --delete "/Users/christian/Music/iTunes/iTunes Music" christian@slave:/Path/to/Library/Music/iTunes/
  • finally, copy iTunes Music Library.xml from master to slave:
    scp "iTunes Music Library.xml" christian@slave:~/Music/iTunes/ scp "iTunes Music Library" christian@slave:~/Music/iTunes/
  • alternatively, if you don´t use the same directory on master and slave for storing the MP3s, do these steps:


    scp „iTunes Music Library.xml“ christian@slave:~/Music/iTunes/tmp.xml slave:~/Music/iTunes cat tmp.xml | sed ’s/\/Users/christian/\/New\/Path/‘ > „import.xml“

    open iTunes at slave and import import.xml

1 Gedanke zu „Sync iTunes Library“

Schreibe einen Kommentar