MySQL/Sync other parts of Kodi: Difference between revisions
< MySQL
Jump to navigation
Jump to search
No edit summary |
(→Steps) |
||
Line 3: | Line 3: | ||
{{-}} | {{-}} | ||
==Steps== | ==Steps== | ||
#Share your existing [[userdata folder]] or a new folder with those files via NFS, SMB, or AFP. | #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. | ||
#Copy the text from the right hand boxes and add it to your '''advancedsettings.xml''' file, between the <code><pathsubstitution></code> and <code></pathsubstitution></code> tags. | #Copy the text from the right hand boxes and add it to your '''advancedsettings.xml''' file, between the <code><pathsubstitution></code> and <code></pathsubstitution></code> tags. | ||
#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 <code>smb://NAS/share/xbmc_stuff/Playlists/</code> | #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 <code>smb://NAS/share/xbmc_stuff/Playlists/</code> |
Revision as of 17:33, 10 February 2012
HOW-TO:Sync multiple libraries/Contents
Many other 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 known to be safe for this task:
Steps
- 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.
- Copy the text from the right hand boxes and add it to your advancedsettings.xml file, between the
<pathsubstitution>
and</pathsubstitution>
tags. - 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
smb://NAS/share/xbmc_stuff/Playlists/
- Make sure all XBMC devices that are being synced have this addition to their advancedsettings.xml file.
Playlists
<substitute> <from>special://masterprofile/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.
Add-on data
<substitute> <from>special://masterprofile/addon_data/</from> <to>PROTOCOL://YOUR_NETWORK_SHARE/xbmc/userdata/addon_data/</to> </substitute> |
Keymaps
<substitute> <from>special://masterprofile/keymaps/</from> <to>PROTOCOL://YOUR_NETWORK_SHARE/xbmc/userdata/keymaps/</to> </substitute> |
Sources
<substitute> <from>special://masterprofile/sources.xml</from> <to>PROTOCOL://YOUR_NETWORK_SHARE/xbmc/userdata/sources.xml</to> </substitute> <substitute> <from>special://masterprofile/mediasources.xml</from> <to>PROTOCOL://YOUR_NETWORK_SHARE/xbmc/userdata/mediasources.xml</to> </substitute> |
RSS Feeds
<substitute> <from>special://masterprofile/RssFeeds.xml</from> <to>PROTOCOL://YOUR_NETWORK_SHARE/xbmc/userdata/RssFeeds.xml</to> </substitute> |