macaruchi wrote:I wanna upgrade because I am gonna change the server for another one.
You don't have to upgrade to install fresh.
You can use the same version on the new server with two exception scenarios:
1) If you require a feature available only in the newer version of Vicidial
* This does not appear to apply, as you said you are just switching out servers, not looking for a new feature
2) If the new install has a version of Asterisk that is too recent for the version of Vicidial on your old server.
* If the old server was Vicibox 7, and the new one is Vicibox 8, they both use Asterisk 11.
So you have some options:
* put the older version of Vicidial on your freshly installed box and your DB will match and you are good to go. This can be done in several ways: You can copy from the old server to the new server all the vicidial specific folders (this can be complex). You can back up and restore from the old to the new (a little easier, but still complex). Or you can downgrade the SVN level of the /usr/src/astguiclient/trunk folder to match the previous server and then reinstall from that folder (perl install.pl) and Vicidial will handle all that for you. You can even move trunk to "trunkOLD" or "trunk2840" and create a new trunk folder matching your previous install's svn level. It's just a repository, after all. No live code. svn is easy to use to download a fresh copy of ANY revision level.
* upgrade your old server before moving to the new server.
- Code: Select all
cd /usr/src/astguiclient/trunk
svn up
cat UPGRADE
The svn up ONLY modifies the contents of the trunk folder. The trunk folder has no live code (it's a repository!) So this is a safe command even if the server is running. It doesn't do anything to any code actually in use.
The UPGRADE document contains instructions to complete the upgrade.
* move the DB to the new server and upgrade the DB to match the code in the new system.
This requires following the instructions in the /usr/src/astguiclient/trunk/UPGRADE document for upgrading the DB also.
* Install with the same CD you used before. Then you can back up on the old server, and restore everything on the new server, run the ip update script (because the new server has a different IP), reboot, and you're done.
But in all cases where you bring the DB from the old system to the new one, you have to take into account that the old DB has entries related to the old server. The IP Update script is useful. The entries under admin->servers may need to be changed (for instance if the asterisk version is different). sip.conf has an entry called externip that may need adjustment. There are a lot of threads which discuss upgrading and moving vicidial between servers. Each case is slightly different. Lots of details. One step at a time is best.