NOTICE: Account creation on the wiki has been temporarily disabled until the wiki is moved to OpenID. If you need an account before then, please request one here: http://forum.xbmc.org/showthread.php?tid=165868
HOW-TO:Share libraries using MySQL/Sync other parts of XBMC
Share libraries w/MySQL, guide:
Many things can be synced using path substitution.
Note that you can also use the Symlink instructions if your OS supports it.
DO NOT TRY TO SHARE DATABASES.
This works with both directories and single files. The following directories and files are generally safe to share between XBMC devices:
- Share your existing userdata folder or a new folder with those files via NFS, SMB, or AFP (make sure have write access, not just read-only access). Most users to do this from the same computer/device as the MySQL server.
- Note/copy the network path of your shared data folder and use that to replace PROTOCOL://YOUR_NETWORK_SHARE/xbmc/userdata/, for example an SMB share holding your playlists use
- Make sure all XBMC devices that are being synced have this addition to their advancedsettings.xml file.
<substitute> <from>special://profile/playlists/</from> <to>PROTOCOL://YOUR_NETWORK_SHARE/xbmc/userdata/playlists/</to> </substitute>
The Playlist folder in XBMC contains music, video and mixed playlists. If you have imported from pre-existing media libraries then you can use your old playlist folder to save time on recreating the various playlists. If your playlists include local file paths, you will need to edit them to use network shares instead.
1.2 Add-on data
<substitute> <from>special://profile/addon_data/</from> <to>PROTOCOL://YOUR_NETWORK_SHARE/xbmc/userdata/addon_data/</to> </substitute>
Sync some of the add-on settings and preferences. With the way python/add-ons/xbmc works, add-ons don't always follow path substitution, and might not always use the remote "addon_data" folder/share. You would have to ask the person who made the add-on to support being able to save the data on a remote share if it is not working with path subs.
The use of this is highly discouraged by most add-on developers and may often just not work or be possible!
<substitute> <from>special://profile/keymaps/</from> <to>PROTOCOL://YOUR_NETWORK_SHARE/xbmc/userdata/keymaps/</to> </substitute>
Useful if you want the controls on all your XBMC devices to be the same. Might not be a good idea if you use different types of remotes on different XBMC devices, as you'll likely want to have individual configurations for them.
<substitute> <from>special://profile/sources.xml</from> <to>PROTOCOL://YOUR_NETWORK_SHARE/xbmc/userdata/sources.xml</to> </substitute> <substitute> <from>special://profile/mediasources.xml</from> <to>PROTOCOL://YOUR_NETWORK_SHARE/xbmc/userdata/mediasources.xml</to> </substitute>
The sources.xml file contains a list of all the sources your media will be collected from, including both local and network-based media. This will also allow you to sync everything that is just in Files view and not in the video library.
If an XBMC device has a source that is specific to it (such as on an internal hard drive that is not shared with the rest of the XBMC devices) then you might not want to share sources.xml.
mediasources.xml is similar to sources.xml, but only effects the options seen when you add a new source and select "browse". It really doesn't matter much if you share this file or not.
1.5 RSS Feeds
<substitute> <from>special://profile/RssFeeds.xml</from> <to>PROTOCOL://YOUR_NETWORK_SHARE/xbmc/userdata/RssFeeds.xml</to> </substitute>
This file tells XBMC what RSS feed to show on the home screen, if enabled.
<substitute> <from>special://profile/favourites.xml</from> <to>PROTOCOL://YOUR_NETWORK_SHARE/xbmc/userdata/favourites.xml</to> </substitute>
This will sync your favorites selections between all XBMC devices. If the favorite depends on a file path that is specific to one XBMC device then this might not work for the other XBMC devices.
<substitute> <from>special://profile/passwords.xml</from> <to>PROTOCOL://YOUR_NETWORK_SHARE/xbmc/userdata/passwords.xml</to> </substitute>
If your network shares use passwords (at least for SMB) then you will need to sync or manually copy the passwords.xml file over to each XBMC device. This file keeps track of those passwords.