backup the content of the vicidial

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

backup the content of the vicidial

Postby pagmasakpan » Tue Aug 07, 2012 5:53 pm

How can I back up the content of the vicidial like list(including the disposition of the agents within a list), call times , user, phone and everything on my vicidial?
or lets just say I want to back up the whole data and settings on my vicidial

VERSION: 2.4-309a
BUILD: 110430-1642
Asterisk Version: 1.4.38-vici
Goautodial.iso installation
Single Server
VERSION: 2.4-309a
BUILD: 110430-1642
Asterisk Version: 1.4.38-vici
Goautodial.iso installation(version 2.1)
Single Server
pagmasakpan
 
Posts: 102
Joined: Mon Aug 08, 2011 7:44 am

Re: backup the content of the vicidial

Postby williamconley » Tue Aug 07, 2012 6:48 pm

I am guessing you have not looked in the /usr/share/astguiclient for a file that may have the word "backup" in it?

try this:

Code: Select all
/usr/share/astguiclient/ADMIN_backup.pl --without-web --without-sounds


then try this:

Code: Select all
ls /var/log/astguiclient/archive -l


The scripts in this folder are very useful. Each has documentation in it (often executing with "--help" will spill the command line options).

Also look here:

Code: Select all
ls -l /usr/src/astguiclient/[version]/docs
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: backup the content of the vicidial

Postby pagmasakpan » Wed Aug 08, 2012 10:50 am

Thanks for the info Sir William

anyway, if u dont mind how can i restore it if i want to transfer my backup file to another server?


VERSION: 2.4-309a
BUILD: 110430-1642
Asterisk Version: 1.4.38-vici
Goautodial.iso installation
Single Server
VERSION: 2.4-309a
BUILD: 110430-1642
Asterisk Version: 1.4.38-vici
Goautodial.iso installation(version 2.1)
Single Server
pagmasakpan
 
Posts: 102
Joined: Mon Aug 08, 2011 7:44 am

Re: backup the content of the vicidial

Postby williamconley » Wed Aug 08, 2012 3:16 pm

copy it to the other server. scp is very useful for this.

Code: Select all
scp FILENAME xxx.xxx.xxx.xxx:/root/FILENAME


replace "filename" with the actual filename, of course. replace xxx.xxx.xxx.xxx with the ip of the receiving server.

decompress/unpack it with tar

Code: Select all
-xvzf FILENAME


find the asterisk sql file which will need to be decompressed again (i forget if it is another tar -xvzf or if it is gunzip, though)

after you have the asterisk sql file decompressed ...

Code: Select all
mysqldump asterisk > asterisk_before_restore2012-08-08.sql
mysql -p -e "drop database asterisk"
mysql -p -e "create database asterisk"
mysql -p asterisk < FILENAMEOFSQLFILEYOUARERESTORINGFROMTHEOTHERSERVER
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to Support

Who is online

Users browsing this forum: No registered users and 74 guests