Mac Photo Library On Synology Nas

It's been over 7 years that I've been running my Plex server off my trusty old 2011 Mac Mini. With it's SSD starting to fail, the time has come to retire it and move my Plex server to my new Synology DS918+, with an upgraded 8GB of RAM. With nearly a decade worth of watch history and friends who are using the server on the regular, it was key to not loose any of the history and libraries.

Given this would be the first time moving Plex from Mac to Linux, instead of Mac to Mac, the migration would require a bit more work. Luckily, I came across a great post by Mo_Gas on the Plex forums, making this process quite painless.

Prepare your Synology NAS

First, we need to get Plex up and running on your Synology NAS.

Install Plex Media Server on your NAS

As I have a DS918+, thus an Intel based NAS, I wanted to make sure that I can take full advantage of hardware transcoding, so I downloaded the Intel 64bit PlexPass version from the Plex website.
I then proceeded to install this by going to the Package Center app and selecting Manual Install and selecting the file I just downloaded.

Configure your new Plex Media Server

With the installation of Plex Media Server completed, go through the setup wizard , but don't add any folders to any library. It is also key to make sure to disable empty trash and automatic library updates in the server's Library settings.

Stop PMS on Synology

Photo Station is a web service and application served by a Synology NAS. All files exist on the NAS in a folder hierarchy and are indexed by the Synology disk management software automatically. The web app can be made available to the Internet by enabling the Synology QuickConnect service or by using a DNS service to redirect to your NAS. In the Finder, go to the external drive where you want to store your library. In another Finder window, find your library. The default location is Users username Pictures, and it's named Photos Library. Drag your library to its new location on the external drive.

With the new server initiated, it's time to stop it. Simply go to the Package Center, look for the Plex Media Server app and press Stop.

Your Synology NAS is now ready for you to import your existing Plex data.

Package up your Plex Server on your Mac

Now that your Synology is ready, it's time to get your existing Plex data off Mac.

Disable Empty Trash / Library Updates on your Mac.

As a first step, go to your existing Plex Server's configuration, under Library, once again disable Empty trash automatically after every scan and Scan my library automatically as well as Scan my library periodically. Save these changes.

Stop Plex Media Server

Simply stop your Plex Media Server on your Mac.

Optional - Transfer content

Mac Photo Library On Synology Nasal

If you are storing your Plex content locally on your Mac, this is the moment where you may want to transfer it to your NAS. Keep in mind, that your content should be accessible by your Synology at the end of this.

Package up your Plex Media Server data

Time to pack it up! In a terminal window, package up your Plex Server data, excluding the Plug-ins folder, by running the following commands:

You can change the ./backup.tar.gz part of the command above to store your backup elsewhere besides the folder itself. I actually ended up saving it to a mounted drive on the NAS, allowing me to access it directly from the NAS.

In my case, the command above took several hours to complete due to the large amount of small files.

If you store it locally as per the command above, copy the backup.tar.gz file over to your NAS once the command completes.

Get your Plex Media Server identifiers

Now we need to make sure we get the Plex Media Server identifiers, so that we can have your new Synology Plex server maintain the same identity and shares.

Start with converting your Plex configuration file into a readable format by executing the following command in Terminal: plutil -convert xml1 com.plexapp.plexmediaserver.plist

Now open the com.plexapp.plexmediaserver.plist file in a text editor and look for MachineIdentifier and ProcessedMachineIdentifier entries and copy their value to temporary document. We'll get back to these later.

Restore your data on your Synology NAS

Mac Photo Library On Synology Nasal

We've finally gotten to the step where we are restoring Plex onto your Synology NAS.

The easiest here is to do the following steps through SSH, however it's also possible to do this via the Synology Web Interface.

Extract your Backup, overwriting existing data

My Plex was installed on volume1 and I had copied the backup.tar.gz to my user's home directory, however you may have to slightly adapt the file paths in the commands below. Run them one at a time:

This will now start unpacking your data into your Plex Server directory. Once that's done, run the following command:

This will make sure your Plex Server has the correct access to these files.

Update the Plex configuration files

Now that your data has been restored, you'll need to restore the identifiers.

Open Preferences.xml under [PATH_TO]/Plex/Library/Application Support/Plex Media Server/. Look for the MachineIdentifier and ProcessedMachineIdentifier in that file and change values to the values you have copied from your Mac into your temporary document before.

Fire up Plex and clean up

Now that all your data has been restored and configured, you can fire up Plex. In Package Center, start the Plex Media Server app again.

Now you should be able to go to your Plex dashboard and find your Synology NAS with all the same data as your old Mac.

Add new Library folders

As your file paths for your library's data have changed, you will now have to go into every Library's configuration and add the new filepaths. Do NOT remove the old ones just yet.

Once you've done that for all your libraries, manually refresh all your Libraries. Double check if all your files are showing up in your libraries and are playing.

Remove old Library folders

Now that you have mapped all your folders again and refreshed your library, you can remove those old folder locations.

Now refresh your libraries once more.

Mac photo library on synology nashua

Once that is complete, give your library another check. You may see some items with a red trash can. I'd recommend checking those items. In my case these were some files that had 2 paths originally that now only had 1, but always worth double checking.

Re-enable automatic updates and the trash

Now that all data has been restored, you can go back to the Library server configuration and re-enable automatic library updates and the Empty Trash functionality if you want to use those features.

Optional - Enable Hardware transcoding

The following step only applies to the Intel based Synology devices and PlexPass users. If that's you, I would highly recommend that you enable hardware accelerated transcoding.

Mac Photo Library On Synology Nas

For this, head to the Transcoder section in your server settings, hit Show Advanced at the top and select Use hardware acceleration when available.

This will enable hardware transcoding, which will significantly decrease your CPU load for video transcoding.

Closing

That is all! By now you have hopefully successfully migrated your Plex Media Server from your Mac OSX machine to your Synology NAS.

Personally, I've been very happy over the last few days with my DS918+, not really experiencing any issues when it comes to transcoding 1080p content.

Photo Station lets you efficiently manage photo storage, share and access files on the go, collect client feedback, and do a lot more.

Brand and Broadcast Your Photography Business

Build a personal gallery to showcase your photography online.

Set a shared link

Distribute your photo gallery through one secure shared link with custom permission levels.

Add signature watermarks

Protect and promote your creative photo assets with custom watermarks.

Easy Management

From local drives to your Synology NAS, your photos will be organized in the same structure, and into smart albums with custom criteria.

Minimize Photo Arrangements

Uploaded photo folders are automatically turned into albums that follow the original structure to save you from reorganizing photos.

Embrace Popular Metadata Standards

Popular metadata standards — XMP, Exif, and IPTC — are supported to make it easy viewing, editing, and searching photo tags. 1

Mac Photo Library On Synology Nasa

Smart albums

Group photos and videos into topical albums by custom criteria and selected tags.

Streamline Photo Sharing

Share photos with shared links, on personal blogs, and on popular social networking websites for strategic branding.

Mac Photo Library On Synology Nascar

DS photo

Mac Photo Library On Synology Nasal Cannula

Save your mobile photos to Photo Station through manual upload or automatic backup, and stream them to smart TVs and other devices for expanded viewing.

  • View photos with iOS and Android devices.
  • Back up your mobile photos manually and automatically2 to free up mobile space.
  • Show photos through our native apps for Android TV and Apple TV, and stream them to Chromecast and DLNA devices for display.

Download and experience now

DS photo is available for iOS and Android users, for free. You can download the apps through App Store or Google Play.

Mac Photo Library On Synology Nashua

Use Synology Moments to securely store all your personal photos without the hassle of organizing them.

Learn more about Moments

Notes:

  1. To know supported metadata standards, see this FAQ.
  2. Photo Backup auto-uploads your mobile photos/videos to Photo Station, a feature supported on iOS and Android devices as well as Windows 10 tablets/laptops.