Howto migrate info to new server

webshark
Posts: 44
Member Since:
2007-01-12

I apologize if this has been asked already....i haven't found anything in the forums yet that has helped.

I have an old TB server that is currently in production. The machine its running on, is on the virge going down (i can just feel it.....noisy hard drive, and mobo has some components that have ruptured). no known backups have been done, the freepbx backups were setup but when checking the backup dir.......it was empty, and there are several errors, which make me hesitant to upgrade it. for example Hudlite is working, but the server piece on the Web GUI produces bunch of php errors. Also, I wanted to create a SQL dump, but no phpadmin on Web GUI. My command line skills aren't all that.

so, I now have a brand spanking new TB 2.2 setup on a new server with RAID1 and it has all the fixin's installed and its ready to go.

I just need to put in all the extensions, queues, trunks, routes, voicemails, MOH, fax settings, etc... from the old server onto this new one.

some have suggested to just do a file copy of the asterisk dir on the old server to the new server. this seems a bit too easy, and what if a file is missed? how would i know which files i need?

so, if anyone has any suggestions or if you could point me in the right direction, I would greatly appreciate it.

the old server.....
Asterisk 1.2.13 svn rev 47264
FreePBX 2.2.0rc3
Trixbox v2.0.0 - I think???

Thanks,

Darren Wilson



dghundt
Posts: 332
Member Since:
2006-08-13
how large is your

how large is your setup?
Historically, it has been easier to configure it all by hand than trying to do fancy upgrades.
you can copy over custom sound files to use, of course.



webshark
Posts: 44
Member Since:
2007-01-12
we have approx..... 30+

we have approx.....
30+ extensions
18 inbound routes
5 outbound routes
3 trunks
6 queues
6 ring groups
5 follow-me (these never really worked to good though)
voicemails for everyone



MillsapsPE
Posts: 385
Member Since:
2006-06-09
I would bet you would spend

I would bet you would spend more time and effort trying to extract the setup data from the old install to get into the new one as it would just to hand type it in from scratch. The only thing I did when I upgraded was to export/import the CDR records. (No, I don't know how to do from CLI.)



webshark
Posts: 44
Member Since:
2007-01-12
Does anyone know of any

Does anyone know of any solutions to bringing info over to new server from old one without manually having to recreate everything?

I tried to do a SQL dump on the old one and import it on the new, but i got a bunch of errors and got locked out of the new trixbox server. I rebuilt it again (which is something I getting real good at doing).

Maybe If I could get a list of all the specific conf files that would have our current info, and maybe copy those over? I would still be stuck with the database issue though.

Thanks.



bins
Posts: 279
Member Since:
2006-06-14
in freepbx, got to backup

in freepbx, got to backup and set up an immediate backup with all options. Using something like webmin, save the file on another pc.

On new server, save the file in the same place (you will probably have to set up the backup folder).

I have done this from 2.0 down to 1.2.3 and 1.2.3/2.0 up to 2.2.

Everything was fine!

Note, you may have to adjust all passwords on new server to be the same as old server

--

The UK Asterisk User Group - www.asteriskug.co.uk

Setup (UK):
1x tb1.2.3
2 x tb2.4
2 with AX100P FXO (working for incoming POTS only)
1 with AX400P/2 FXO's
SIP voip supply by voipfone.co.uk
SIP/IAX extensions (internal)
IAX remote extensions



bubbapcguy
Posts: 3774
Member Since:
2006-06-02
backup fix

cp /var/www/html/admin/modules/backup/var/lib/asterisk/bin/* /var/lib/asterisk/bin/
chown asterisk:asterisk /var/lib/asterisk/bin/*
chmod +x /var/lib/asterisk/bin/*

or adjust to fit (below is 1 line)
mysqldump -uroot -ppassw0rd --all-databases | gzip >/root/complete.sql.gz



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.