Skip to content

Instantly share code, notes, and snippets.

@technicalpickles
Created August 2, 2011 04:27

Revisions

  1. technicalpickles revised this gist Aug 2, 2011. 1 changed file with 7 additions and 2 deletions.
    9 changes: 7 additions & 2 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,14 @@
    Motivation
    ----------

    Shiny new MacBook Air, and I wanted to do this install from scratch (no TimeMachine recovery), but still get the good stuff from my old laptop. Also, rsync is awesome.

    Prepare old computer
    ---------------------

    On old computer, from iTunes: `File -> Library -> Organize Library` and check `Consolidate files`.

    After this looks like it finished (would be displayed in status area, i.e. song progress), *quit iTunes*.
    After this looks like it finished (would be displayed in status area, i.e. song progress), **quit iTunes**.

    In `System Preferences`, go to `Sharing` and make sure `Remote Login` is enabled.

    @@ -13,7 +18,7 @@ Make note of this computer's IP address. You can use `/sbin/ifconfig` or the `Ne
    Prepare new computer
    ----------------------

    *Quit iTunes.*
    **Quit iTunes.**

    Backup existing files, just in case:

  2. technicalpickles revised this gist Aug 2, 2011. No changes.
  3. technicalpickles revised this gist Aug 2, 2011. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -35,7 +35,7 @@ Now wait, and have a glass of scotch.
    The result
    -----------

    Your new computer should have all these things:
    Open iTunes on your new computer, and you should have all these things:

    * Music
    * Playlists
  4. technicalpickles created this gist Aug 2, 2011.
    55 changes: 55 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,55 @@
    Prepare old computer
    ---------------------

    On old computer, from iTunes: `File -> Library -> Organize Library` and check `Consolidate files`.

    After this looks like it finished (would be displayed in status area, i.e. song progress), *quit iTunes*.

    In `System Preferences`, go to `Sharing` and make sure `Remote Login` is enabled.

    Make note of this computer's IP address. You can use `/sbin/ifconfig` or the `Network` preferences.


    Prepare new computer
    ----------------------

    *Quit iTunes.*

    Backup existing files, just in case:

    cd ~/Music
    mv iTunes iTunes.bak

    rsync in boss like fashion:
    ----------------------------

    Remember that IP address from earlier? Let's pretend it's 192.168.1.4 for demonstration.

    On new computer:

    cd ~/Music
    rsync -av --delete 192.168.1.4:Music/iTunes .

    Now wait, and have a glass of scotch.

    The result
    -----------

    Your new computer should have all these things:

    * Music
    * Playlists
    * Song plays
    * Ratings
    * Videos
    * Syncability with iPhones/iPods

    Troubleshooting
    ---------------

    The first time I tried this, it didn't recognize anything in the Library. Not sure if these matter, or if the second run was just luckier. In any event, these are things I tried, and are reflected above when it's pretty likely to have helped:

    * Tried to add existing Library to itself. Cancelled partway through
    * On old computer, exported Library using `File -> Library -> Export Library`
    * Added --delete to rsync run
    * Made sure iTunes wasn't running during rsync