Forum LAMS for Tech-Heads - General Forum: Re: Backup/copying a lams install


 
Search: 

2: Re: Backup/copying a lams install
In response to 1 06/09/09 05:06 PM
[ Reply | Forward ]
Hi Dave,

If you want to copy a running LAMS instance to then do an upgrade, you need:

1.- the LAMS database dump
2.- copy the entire jboss directory
3.- copy the LAMS data directory

and I think that's pretty much it.

On the new server:

1.- create the database and the database user that you had for the old server.
2.- import the db dump
3.- put the jboss directory (in the exact same location as you had it on the old server)
4.- copy the LAMS data directory (in the exact same location as you had it on the old server).

Once you start it, I assume that the server URL is different. So you might want to login as sysadmin go to the sysadmin menu --> change system settings and modify the server url.

If this is all good, then you can use the LAMS installers/upgraders to test. It should create backups automatically before you perform an upgrade.

Thanks

Ernie

Posted by Ernie Ghiglione

3: Re: Re: Backup/copying a lams install
In response to 2 06/09/09 06:57 PM
[ Reply | Forward ]
Thanks I'll try that!

Posted by Dave Bauer

4: Re: Re: Re: Backup/copying a lams install
In response to 3 06/10/09 04:27 PM
[ Reply | Forward ]
Dave,

I'm posting this more for the future reference of people finding this thread later.

There are also a few notes on this on:

http://wiki.lamsfoundation.org/display/lamsdocs/Revert+To+Other+Backup

The title of the document probably isn't the best!

If you are doing a backup to restore later (rather than testing the upgrader as you are) then there are a couple of other things that need to be backed up / set up when the copy is done.

Fiona

Posted by Fiona Malikoff

5: Re: Re: Re: Backup/copying a lams install
In response to 3 06/16/09 01:14 PM
[ Reply | Forward ]
Ok i have the copy running OK, and I upgraded it.
WHen I try to run the author tool i see it tries to access the OLD url when the original server was running not the new url where the copy is running.

What do I have to edit to change the URL lams is running under? I searched in the jboss/server/default/conf directory and did not see the domain set. Perhaps its set in the mysql database?

Posted by Dave Bauer

6: Re: Re: Re: Re: Backup/copying a lams install
In response to 5 06/16/09 01:20 PM
[ Reply | Forward ]
Answering my own question!

update lams_configuration set config_value='http://newurl' where config_key='ServerURL';

Posted by Dave Bauer

Reply to first post on this page
Back to LAMS for Tech-Heads - General Forum