Ability to share and synchronize XBMC userdata profiles between multiple machines

  Thread Rating:
  • 2 Votes - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
RockDawg Offline
Posting Freak
Posts: 1,438
Joined: Jun 2005
Reputation: 1
Lightbulb  Ability to share and synchronize XBMC userdata profiles between multiple machines
Post: #1
i wish there was a way to synchronize multiple xboxes (maybe there is and i just don't know how?). i currently have two machines around the house that are fed media from a couple servers in the basement. i would like to upgrade to four xboxes, but the pain of managing them all keeps me from doing it.

example: i purchase a new dvd and rip it to the server. i now have to go to each xbox and scan the movie in. if imdb scans in some incorrect info for the movie, i then have to go in and manually edit the db on each machine.

it's not a major problem with two machines, but you can see what a pain it would be with 4 or more. what sucks is that ultimately the movie info in the db needs to be the same across all the machines. it would seem a logical solution would be to move the db's to the server, but i think some db elements like the stored aspect ratio might make that problematic.

does anyone have a suggestion on this or even a better idea that could possibly be implimented in future releases?
find quote
kraqh3d Offline
Retired Developer
Posts: 7,172
Joined: Dec 2003
Reputation: 4
Location: New York City, USA
Post: #2
sure, i have the same problem. just copy the database between boxes (assuming all of them are running the same exact version.)

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
senergy Offline
Posting Freak
Posts: 761
Joined: Nov 2003
Reputation: 0
Post: #3
just run an automated script, or even a quick batch file that will delete the current db and ftp over a new one when ever you run it.
find quote
RockDawg Offline
Posting Freak
Posts: 1,438
Joined: Jun 2005
Reputation: 1
Post: #4
one problem with copying over the db is that i don't leave both the xboxes turned on all the time. if i ever get as many xbmc boxes as i want, i'll be running all over the house turning them on just so i can update the db on all of them and then run all around and turn them all back off. that's why something like a non-local db would be so great.

in any event it looks like copying the db will be my only option.

senergy - i don't know how to write a script or batch file. do you know anywhere i can get some info on how to write one to do that?
find quote
xlilcasper Offline
Junior Member
Posts: 4
Joined: Nov 2005
Reputation: 0
Post: #5
well.. xbmc can run a script at startup right? what about when closing? if you can get it to do it when closing you could always....

make a small script that on closing, uploads the database file to your server.

then just make a script that upon loading xbmc it downloads the latest database when it starts.

this way you don't have to do it. every time you turn on your xbox and start up xbmc it would grab the latest database.
find quote
RockDawg Offline
Posting Freak
Posts: 1,438
Joined: Jun 2005
Reputation: 1
Post: #6
that sounds like a great idea.  is it possible?  can the xbox initiate a file download from a computer?  

really, all it would need to do is run at startup and delete the current db on the system and download the updated one from my server.  i wouldn't need a script to run at shutdown, because i would always keep a up-to-date copy of the db on the server and that would be the one i edit.

that would be a killer solution if it's possible... and if i can figure out how to write the script to do it!
find quote
RockDawg Offline
Posting Freak
Posts: 1,438
Joined: Jun 2005
Reputation: 1
Post: #7
anyone with anymore input on whether this is doable or not? are there any potential pitfalls?
find quote
xlilcasper Offline
Junior Member
Posts: 4
Joined: Nov 2005
Reputation: 0
Post: #8
well it should be possable, if you can't get it to work with ftp (which it should be able to do, belive i've seen ftp scripts...) you could always run a web server on the server and just grab the file that way. we know the xbmc python can do web pages, that's how quicktime browser and all that work. so i would say it's very possable.
find quote
RockDawg Offline
Posting Freak
Posts: 1,438
Joined: Jun 2005
Reputation: 1
Post: #9
anyone care to help me out with this script? i've never wrote on before and i've been reading some python tutorials, but they're more about making some text or a window pop up. i don't see anything about initiating an ftp session and copying a file. nor do i see how to run a script at startup and shutdown.

after thinking about it more, and i think xlilcasper is right. i need it to copy the db from the server on startup and copy to the server on shutdown.

i'd really appreciate any help on getting started with this.
find quote
balthisar Offline
Junior Member
Posts: 14
Joined: Apr 2006
Reputation: 0
Post: #10
is there an easy* way to share all of the database data between multiple xbmc's on the same subnet? i have a mythtv box that's on 24 hours connected to my xbmc's using smb, so that would be a likely candidate for hosting.

essentially, i'd be looking to do something like this: whenever i get imdb data on one xbox, that data's stored someplace on my server. even cooler, when i stop a video on one xbmc, that stop point would be stored on the server so that regardless of which xbox i'm at, the video resumes from that stop point.

any ideas?

*"easy" meaning one or more text files i can edit without have to recompile all of my own code.
find quote
nsmoller Offline
Junior Member
Posts: 34
Joined: Nov 2004
Reputation: 0
Post: #11
i'm doing a nas (network attached server) which is basically a crappy old pc with a few hds in it attached to a router with win xp and smb set up.

i then have multiple xboxes with xbmc and stream to each. all xboxes have a common xboxmediacenter.xml which have bookmarks pointing at the nas

that does what you want to do!
find quote
sCAPe Offline
Fan
Posts: 440
Joined: Mar 2005
Reputation: 0
Location: Germany
Post: #12
that's not what he meant.

he meant he wants his mymusic.db, myvideos.db, etc stored on a network location and not locally on his xbox.
he then could access the database files from all the other xboxes in his home.

not sure if this is possible..

My XBOX built into a Sony Hifi CD-Player Case
XBOX Hifi Media Center Picture Gallery

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
balthisar Offline
Junior Member
Posts: 14
Joined: Apr 2006
Reputation: 0
Post: #13
(scape @ april 18 2006,12:26 Wrote:he meant he wants his mymusic.db, myvideos.db, etc stored on a network location and not locally on his xbox.
he then could access the database files from all the other xboxes in his home.
yeah, that's exactly what i meant -- keep the databases on the server somewhere.

nsmoller, your answer is basically what i already do -- my entire video and dvd library is on the mythtv server, and i use xbmcmythtv for the recorded television. i don't actually have a mythtv front end anywhere. it works supurbly. the only missing piece of the puzzle is the shared databases for the several xboxes, which could live happily on the mythtv server since it's always on.
find quote
JoyMonkey Offline
Junior Member
Posts: 10
Joined: Jun 2005
Reputation: 0
Star   
Post: #14
i've got a couple of xbox's at home that i use primarily to play movies, tv shows and music from a small server computer. can i use common xbmc databases for both?
what i mean is, can i tell xbmc to store the video database file on my server (perhaps the whole user data folder), so both instances of xbmc will pull information from the same database?

i realize that this probably isn't possible right now (i'm pretty sure it's not), is this a feature that could end up in a future build?

i can see how having the user data folder on a remote computer might cause problems if xbmc is running and the remote computer is turned off, maybe xbmc could keep a local cache of the remote user data folder?

would any of this be possible? or have i smoked too much crack again?
find quote
HarshReality Offline
Posting Freak
Posts: 1,544
Joined: Jan 2005
Reputation: 0
Post: #15
if you had both xboxes with the same info in settings and say they pointed to a smbshare certainly but it would be slow as hell as they tend to cache and the transfer alone... well you get the idea.

but by all means give it a try.

[Image: x3.jpg]
find quote
Post Reply