|
From: Andrew H. <hur...@ll...> - 2003-10-31 23:19:35
|
So you want to migrate the users only? I assumed you wanted to mirror the whole database... For users only, I'm not sure. I'm cc'ing this back to the openinteract-help list so someone more knowledgeable (Chris) can clear that up. -Andrew >that would be the easy way, proovided that >there are not other tables that I would have to update based on user ids and >groups and other settings. >Actually my question is at this level: to import the user from one set-up to >another one (let's assume I have two OI sites siteA on machineA and siteB on >machineB) do I have to take care of something else than just the sys_user >sys_group tables? >Do I have to update other tables too? > >thanks for helping, >Adrian > >_____________________________________________________ >Adrian Arva >Dolan DNA Learning Center >phone (5196) >http://www.dnalc.org/ > > >-----Original Message----- >From: Andrew Hurst [mailto:hur...@ll...] >Sent: Friday, October 31, 2003 6:12 PM >To: Arva, Adrian; 'ope...@li...' >Subject: Re: [Openinteract-help] sync-ing users on 2 machines > > > > >Assuming you're using mysql, why not just nightly run a mysqldump job >to update the standby server? > >(on standby server) >$ mysqldump -u backup_user -h prod_host -p prod_database > backup_db.sql >$ mysql -u backup_user -h backup_host -p backup_database < backup-db.sql > >You could even run that hourly, but I'm not sure of the affect of >that on site performance. I'm sure it depends on the size of the >database. > >Or you could use mysql replication, which I think slashdot uses to good >effect. > >Or you could use Oracle, which provides standby functionality out of >the box for 8i and up. > >I think the first would be best for most small to mid-size sites. > >-Andrew > > >At 3:54 PM -0500 10/31/03, Arva, Adrian wrote: >>Hi, >> >>I have to systems, based on OI1, set up and the second one should act as >>standby server. >>But that means I would need to be able to mirror the users I have in first >>system to the second one. >>I let users register, so on a daily basis I would have to mirror their data >>from the live site to the standby one but >>I am worried that it won't be enough to just simply sync the sys_user >>tables. >> >>Thanks for your inputs, >>Adrian >> >> >> >> >>------------------------------------------------------- >>This SF.net email is sponsored by: SF.net Giveback Program. >>Does SourceForge.net help you be more productive? Does it >>help you create better code? SHARE THE LOVE, and help us help >>YOU! Click Here: http://sourceforge.net/donate/ >>_______________________________________________ >>openinteract-help mailing list >>ope...@li... >>https://lists.sourceforge.net/lists/listinfo/openinteract-help |
|
From: Chris W. <ch...@cw...> - 2003-11-01 02:24:13
|
* Andrew Hurst (hur...@ll...) [031031 18:34]: > So you want to migrate the users only? I assumed you wanted to > mirror the whole database... > > For users only, I'm not sure. I'm cc'ing this back to the > openinteract-help list so someone more knowledgeable (Chris) can > clear that up. ** Adrian Arva wrote: > >that would be the easy way, proovided that > >there are not other tables that I would have to update based on user ids > >and > >groups and other settings. > >Actually my question is at this level: to import the user from one set-up > >to > >another one (let's assume I have two OI sites siteA on machineA and siteB > >on > >machineB) do I have to take care of something else than just the sys_user > >sys_group tables? > >Do I have to update other tables too? I'm not sure why you'd just want to update the user tables, but off the top of my head you should just need to update: sys_user sys_group sys_group_user Periodically dumping the database and scp'ing that to the remote machine will probably do the trick for quick-n-dirty replication as well, depending on how big your site is. The best possibility is to rely on whatever the database may use for replication, leaving out frequently-updated tables like 'sessions'. Chris -- Chris Winters (ch...@cw...) Building enterprise-capable snack solutions since 1988 |
|
From: Stathy G. T. <st...@ed...> - 2003-11-04 20:43:59
|
I have created a custom theme which utilizes it's own base_main template. How do I pass data to this template when it gets called? Is the data passed to the calling template get passed on to the base_main template? |
|
From: Chris W. <ch...@cw...> - 2003-11-04 22:32:56
|
* Stathy G. Touloumis (st...@ed...) [031104 15:59]:
> I have created a custom theme which utilizes it's own base_main
> template. How do I pass data to this template when it gets called? Is the
> data passed to the calling template get passed on to the base_main template?
Add stuff to $R->{main_template_vars}, as in:
$R->{main_template_vars}{current_weather} = 'Hurricane!';
And in your custom main template:
The current weather: [% current_weather %]
See OpenInteract::UI::Main for details.
Chris
--
Chris Winters (ch...@cw...)
Building enterprise-capable snack solutions since 1988
|