7

How can I keep my whole music library on my NAS and comfortably access it and manage it there and at the same time have a music selection locally stored on my MacBook that I can manage while away and that gets synchronized with my NAS library when I get back.

Is there way to do that?

My Setup: a Synology DS412+ with DSM 4.1 and a MacBook Pro with Mountain Lion

Update:
The idea is to have a master library on the nas and a slave library for mobile use that merges all changes back to the master and gets updated information from the nas. Like a selective cloud sync.

Update (2): The purpose of this usage is to be able to play music without having access to broadband internet (train, plane, car, public places, ...) without maintaining two libraries.

1
  • This is an interesting questions with a panel of possible answers. I too am looking for a decent solution which will be very simple to use by my wife on her MB Air.
    – Coyote
    Oct 8, 2012 at 19:15

5 Answers 5

2

You could set up something like this (Make sure that your iTunes Library File (iTunes Music Library.xml) is on your mac, not on your NAS):

  1. Create a playlist "On the go"
  2. Use this script to move the files in the playlist from your NAS (iTunes media location) to your mac.
  3. On the go, with no connection to your NAS: iTunes will tell you that the files are not available when you click to play, click "search" and select the folder you´ve synced the files to.
  4. When you add new music on the go, iTunes will copy that to the default location (/music/iTunes/) on your mac.
  5. When you have access to your NAS again: Check that the iTunes Media Location is your NAS (Settings > advanced) and click File > Media Library > Organise Media Library. All Files you added while on the go will be copied to your NAS.
  6. Delete the Files in your local iTunes Media Folder.
1
  • Thank you. I guess this is as close as I can get. I will try that soon!
    – soelu
    Sep 3, 2013 at 14:49
0

I am not totally sure that this would work since I don't have your hardware (my home server is an old G4 - works like a charm), but here goes. According to the official documentation on Synology's site, you can easily run iTunes server using their software. If the screenshots, etc., are correct and accurate indicators of the function, you should be easily able to accomplish what you're after using that and the standard sync software they provide. If you haven't set up iTunes server yet, do that. If you have, keep the iTunes media folder on the NAS current using the rest of the sync software. You may have to restart the iTunes server to have it "see" the new files, but it should do the trick.

Note: there is the "Automatically Add to iTunes" folder at ~/Music/iTunes/iTunes Music/ that you might try to monkey with; however, I don't know if such a folder exists on their server version and I have had limited success using this on my local setup. Sometimes she work, sometimes she no work.

Good luck!

1
  • I had an iTunes Server but it only shows as a list of songs. No Album, Artist or Genre View. Also, it's not possible to edit the song information (adding covers or editing tags). Thx for the answer though.
    – soelu
    Oct 8, 2012 at 22:37
0

Create two libraries in iTunes, one for your NAS and the local one, then hold down the Option key each time you start iTunes to choose a library?

Update:
Concerning the synchronization, I don't see a compelling automatic solution but can be achieved using rsync.

Here's what I came up with :

  • create a playlist from your master (NAS) library containing the tracks you want to store locally
  • export the playlist to m3u format
  • you want to store the files on your disk using the same folder hierarchy than the NAS to ease later sync. Type in your terminal :

    cpio -pd local_iTunes_dir < m3u_file

  • open iTunes picking your local library, and drag&drop local_iTunes_dir on iTunes dock icon to import files
  • use rsync to sync edited+new files back to the NAS
See http://tunecrux.com/exporting-music-from-itunes-mac-while-keeping for details of the technique.

More general thought regarding NAS usage:
It kinda defeat the purpose of a NAS if you have to maintain a local library. Imo, having the NAS always connected and an internet connection at disposal to access it when you're away, are the 2 constraints to satisfy to take advantage of a such device.

6
  • but how will information get synced between those libraries? this is the solution I'm using now and that I'm unhappy with.
    – soelu
    Oct 9, 2012 at 7:29
  • can you be more specific about the info you want synced ? is it just id3 tags or iTunes related like ratings or playcounts?
    – kraymer
    Oct 9, 2012 at 7:39
  • preferably every but mostly tags and new songs. The idea is to have a master library on the nas and a slave library for mobile use that merges all changes back to the master and gets updated information from the nas. Like a selective cloud sync. (added this to question body)
    – soelu
    Oct 9, 2012 at 7:59
  • The purpose of this usage is to be able to play music without having access to broadband internet (train, plane, car, public places, ...) without maintaining two libraries. The issue would not occur when we would be talking about a desktop computer.
    – soelu
    Oct 9, 2012 at 9:37
  • Just to be sure: you don't have an iOS device? because an iTunes synchronisation would work a treat
    – kraymer
    Oct 10, 2012 at 8:45
0

I don’t know if there is an easy solution for what you want to do. I’d recommend turning on “Home Sharing.” It has an option to see music that’s in one library that’s not in another.

Highlight the other library in iTunes. Select “Items not in my library”, highlight them, and select “import.” You’d have to select that on each library you want to sync.

It’s not quite what you asked for, but it’s built in, and it’s free. You might be able to create a smart playlist, but I haven’t tried that.

0

If your library has fewer than 25,000 tracks, this is the perfect use for iTunes Match. You will see all the music in the laptop's library, but you can download only what you want on that computer. You download what you want when you're on wifi. Anything you add to the laptop will get synced to the cloud, and you can download it on your main Mac.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .