AuthorMessage

noc



Joined: 08 Sep 2004
Posts: 16

PostPosted: 08 Sep 2004 15:37    Post subject: Backup and Restore configuration  

What is the procedure to backup and restore configuration of the Q400, gwconfig configuration but also administrator configuration (services, etc...) ?
Back to top
     
Sébastien LAVIGNE



Joined: 23 Jul 2004
Posts: 227

PostPosted: 09 Sep 2004 09:02    Post subject:  

Hello, 


The backup/restore of the whole configuration can be done only on the same QuesCom 400 (same S/N) and same version. 


1. DATABASE BACKUP

All configuration made via QPortal is included into a database named VoIP.mdb.
If you don't want to backup registry parameters but only QPortal configuration, you have 2 ways to backup the database :

From the QuesCom Management Console (QWADMIN):
- Enter the QuesCom Management Console
- Go to the IP address of your stand alone QuesCom 400 and expand (create the Call Server entry if necessary)
- Right click on Downloads link and select Properties from menu list.
In popup window WebBrowserPage modify the URL replace the value with aaa.bbb.ccc.ddd/d:\quescom\callserver (where aaa.bbb.ccc.ddd is the QuesCom 400 IP address), then click OK.
- Click again on Downloads link, the directory list of CallServer appears, click on file named VoIP.mdb then save it to the destination of your choice.

From FTP client (Windows NT, 2000, XP):
- Open a Command Prompt window, move to directory C:\ (or any other Local Disk),
- Type ftp aaa.bbb.ccc.ddd (where aaa.bbb.ccc.ddd is the QuesCom 400 IP address).
- Enter the login “administrator” and the associated password: admin for IAD03.50BxxPxxx versions or quescom for IAD03.51BxxPxxx versions.
- Type command: bin
- Type cd d: then cd quescom\callserver
- Type get voip.mdb and bye to quit the FTP session.

You will find the file VoIP.mdb in the directory C:\


2. DATABASE RESTORE

Once you have backuped the VoIP.mdb database, you can need to restore it.

From Telnet client (Windows NT, 2000, XP):
- Open a Command Prompt window.
- Type telnet aaa.bbb.ccc.ddd (where “aaa.bbb.ccc.ddd” is the QuesCom 400 IP address).
- Enter the login “administrator” and the associated password admin for IAD03.50BxxPxxx versions or quescom for IAD03.51BxxPxxx versions.
- Type sc stop gatekeeper, sc stop qodbcsvr and sc stop qwebsvr

From FTP client (Windows NT, 2000, XP):
- Open another Command Prompt window, move to directory C:\ and type ftp aaa.bbb.ccc.ddd (where “aaa.bbb.ccc.ddd” is the QuesCom 400 IP address).
- Enter the login “administrator” and the associated password admin for IAD03.50BxxPxxx versions or quescom for IAD03.51BxxPxxx versions.
- Type command: bin
- Type cd d: then cd quescom\callserver
- Type put voip.mdb and bye to quit the FTP session.

From Telnet client already connected:
- Type sc start gatekeeper, sc stop qodbcsvr and sc start qwebsvr
- Type exit to quit the telnet session.


3. FULL BACKUP

This backup is based on a script that backup all registry configuration + the database.
Registry parameters includes all gwconfig parameters + all parameters set into QWAdmin.
Database included all QPortal configuration.

This backup is done in 4 steps :

1. Download the batch file named "backup" from the support website and copy this file your directory C:\ (or any other Local Disk).

2. Upload the file into the QuesCom 400
From FTP client (Windows NT, 2000, XP):
- Open a Command Prompt window, move to the directory where you have copied "backup" file.
- Type ftp aaa.bbb.ccc.ddd (where aaa.bbb.ccc.ddd is the QuesCom 400 IP address).
- Enter the login “administrator” and the associated password: admin for IAD03.50BxxPxxx versions or quescom for IAD03.51BxxPxxx versions.
- Type command: bin
- Type put backup.bat

3. Execute the batch file
From Telnet client (Windows NT, 2000, XP):
- Open a Command Prompt window.
- Type telnet aaa.bbb.ccc.ddd (where aaa.bbb.ccc.ddd is the QuesCom 400 IP address).
- Enter the login “administrator” and the associated password: admin for IAD03.50BxxPxxx versions or quescom for IAD03.51BxxPxxx versions.
- Type command: backup

4. Download the backup file under zip format
From FTP client already connected:
- Type command: bin
- Type get backup.zip


4. FULL RESTORE

Once you have backuped all registry and database configuration, you can need to restore it.

This restore is done in 4 steps :

1. Download the batch file named "restore" from the support website and copy this file your directory C:\ (or any other Local Disk).

2. Upload the file into the QuesCom 400
From FTP client (Windows NT, 2000, XP):
- Open a Command Prompt window, move to the directory where you have copied "backup" file.
- Type ftp aaa.bbb.ccc.ddd (where aaa.bbb.ccc.ddd is the QuesCom 400 IP address).
- Enter the login “administrator” and the associated password: admin for IAD03.50BxxPxxx versions or quescom for IAD03.51BxxPxxx versions.
- Type command: bin
- Type put restore.bat

3. Upload the restore file under zip format
From FTP client already connected:
- Type command: bin
- Type put restore.zip

4. Execute the batch file
From Telnet client (Windows NT, 2000, XP):
- Open a Command Prompt window.
- Type telnet aaa.bbb.ccc.ddd (where aaa.bbb.ccc.ddd is the QuesCom 400 IP address).
- Enter the login “administrator” and the associated password: admin for IAD03.50BxxPxxx versions or quescom for IAD03.51BxxPxxx versions.
- Type command: restore
- Once the restore is done, type exit to quit Telnet session.
Backup.bat file :





REM ***************************************************************
REM *  Date     :   10/01/2003                                    *
REM *  Author   :   QuesCom Support                               *
REM *  Version  :   1.20        Modified on : 22/12/04            *
REM *                                                             *
REM *  AVAILABLE ONLY FOR 03.51 VERSIONS                          *
REM *                                                             *
REM *                                                             *
REM *  Batch file to save all custumized parameters:              *
REM *  ---------------------------------------------              *
REM *  - Registry values : Network, Call Server, Gateway, ISDN,   *
REM *                      VoiceBox.                              *
REM *  - DataBase        : VoIP.mdb                               *
REM *  - Gateway         : TXT, VCE files                         *
REM *                      QNum.ini                               *
REM *  - VoiceBox        : Users/company settings and messages    *
REM *                                                             *
REM ***************************************************************

 

CLS

 

IF EXIST X:\backup.zip (
del backup.zip
echo\ )

 

REM ***************************************************************
REM *    Backuping Data...                                           *
REM ***************************************************************
echo You will have to wait for a few minutes for the completion of this tasks.
echo Do not reboot the QuesCom 400.
echo\
pause

 


mkdir X:\Backup
mkdir X:\Backup\Registry
mkdir X:\Backup\Quescom\CallServer
mkdir X:\Backup\Quescom\Gateway
mkdir X:\Backup\Temp

 

REM ***************************************************************
REM *    Starting to save registry values...                      *
REM ***************************************************************
echo Backuping Registry infos
echo ------------------------
echo\

 

REM >>>>>>>>>>>>>>>>  Call Server parameters  <<<<<<<<<<<<<<<<<<<<<
echo --- Saving Call Server parameters
reg save HKLM\system\currentcontrolset\services\gatekeeper\parameters X:\Backup\Registry\CallServer.hiv
echo\

 

REM >>>>>>>>>>>>>>>>  Gateway parameters  <<<<<<<<<<<<<<<<<<<<<<<<<
echo --- Saving Gateway parameters
reg save HKLM\system\currentcontrolset\services\gateway\parameters X:\Backup\Registry\Gateway.hiv
echo\

 

REM >>>>>>>>>>>>>>>>  ISDN Driver parameters  <<<<<<<<<<<<<<<<<<<<<
IF EXIST C:\winnt\system32\drivers\qIsdnBRI.sys (
echo --- Saving BRI parameters
reg save HKLM\system\currentcontrolset\services\qIsdnBri\parameters X:\Backup\Registry\BRI.hiv
echo\ )

 

IF EXIST C:\winnt\system32\drivers\qIsdnPRI.sys (
echo --- Saving PRI parameters
reg save HKLM\system\currentcontrolset\services\qIsdnPri\parameters X:\Backup\Registry\PRI.hiv
echo\ )

 

REM >>>>>>>>>>>>>>>>  Voice Box parameters  <<<<<<<<<<<<<<<<<<<<<<<
IF EXIST D:\QuesCom\VoiceBox\VoiceBox.exe (
echo --- Saving VoiceBox parameters
reg save HKLM\system\currentcontrolset\services\voicebox\parameters X:\Backup\Registry\VoiceBox.hiv
echo\ )

 


REM ***************************************************************
REM *    Starting to save the Database...                         *
REM ***************************************************************
echo\
echo --- Saving the Database
xcopy /Q d:\quescom\callserver\VoIP.mdb X:\Backup\Quescom\CallServer\.
echo\

 

echo --- Saving the CDR
xcopy /Q X:\Data\callserver\VoIPcdr.mdb X:\Backup\Quescom\CallServer\.
echo\

 


REM >>>>>>>>>>>>>>>>  TXT files from Gateway directory  <<<<<<<<<<<
echo --- Saving Customized files of QuesCom 400
xcopy /Q d:\quescom\gateway\*.txt X:\Backup\Quescom\Gateway\*.txt
xcopy /Q d:\quescom\gateway\QNum.ini X:\Backup\Quescom\Gateway\.
xcopy /Q d:\quescom\gateway\voice\*.* X:\Backup\Quescom\Gateway\Voice\*.*
echo\

 

REM ***************************************************************
REM *    Starting to save the users VoiceBox...                   *
REM ***************************************************************
IF EXIST D:\QuesCom\VoiceBox\VoiceBox.exe (
mkdir X:\Backup\Quescom\VoiceBox
echo --- Saving VoiceBox Users greetings and settings
xcopy /Q d:\quescom\voicebox X:\Backup\Quescom\Voicebox\ /s
del X:\Backup\Quescom\Voicebox\*.dll
del X:\Backup\Quescom\Voicebox\*.exe
echo\
echo --- Saving users voicemails
xcopy /Q E:\Data\VoiceBox\Company2 X:\Backup\Temp /S
echo\ )

 

CLS
echo All parameters are saved and are going to be zipped.

 

REM ***************************************************************
REM *    Starting to ZIP Backup files...                          *
REM ***************************************************************
echo --- Zipping backuped files...
zip -q -r X:\Backup.zip X:\backup
echo --- Done
echo\
echo --- Testing zip file integrity
zip -T X:\Backup.zip
echo --- Done
echo\
rmdir /S /q X:\Backup


echo\
echo --- Process finished.
echo --- You can now download the file Backup.zip
echo\
echo\