Page 1 of 1
how to backup and restore?
Posted:
Thu Aug 18, 2011 4:11 pm
by bryan.kewl
GoAutoDial 2.1CE
VICIDIAL VERSION: 2.4-325c
BUILD: 110430-1924
Please guide me how to backup. I am mainly interested in backing up callbacks, call-records(we don't have any recording, so only need the records like call time, calling agent, etc), leads. I can recreate the users/carriers/campaigns/groups etc.
Also guide me how to apply the backup.
Also is it possible that I can apply this backup on vicidial?
Posted:
Thu Aug 18, 2011 4:57 pm
by williamconley
- Code: Select all
perl /usr/share/astguiclient/ADMIN_backup.pl --help
this merely shows options.
executing this script will place a numbered backup in /var/log/astguiclient/archive. executing it daily will result in 7 daily backups rotating in this location. use of the ftp option (in conjunction with the ftp credentials in astguiclient.conf) will result in this backup being automatically pushed to an ftp server as part of the process.
restoration requires using mysql asterisk < FILENAME after "unpacking" the compressed file. but restoration requires matching the database to the installed code on the box.
Posted:
Wed Nov 09, 2011 3:31 am
by noworldorder
I am getting a new motherboard for my server (Please let this solve my delay issue). I have backed up my data via /usr/share/astguiclient/ADMIN_backup.pl --debugX and I have a file called 192.168.1.117_ALL_3.tar.gz
So is this file really all my data?
and can someone walk me through the restore procedure please?
This is over my head:
restoration requires using mysql asterisk < FILENAME after "unpacking" the compressed file. but restoration requires matching the database to the installed code on the box.
restoration requires using mysql asterisk < FILENAME after "unpacking" the compressed file. but restoration requires matching the database to the installed code on the box.
I need some step by step help if anyone could be so kind
Posted:
Sat Nov 12, 2011 3:42 pm
by williamconley
verify that the sql data IS inside the gz file. Look up the use of the "tar" and "gunzip" applications to "unpack".
The restoration procedure (I believe) is covered in the Manager's Manual. I've never looked, though, as it's primarily just a "use tar to copy a bunch of files to specific locations" along with that mysql restore procedure. Not hard, but knowing how to use tar and gunzip is ... handy.
Posted:
Sat Nov 12, 2011 4:32 pm
by noworldorder
Thanks...
So am I correct in assuming that it is up to me to move all of the files to their correct location (no script to do this).
If this is true then I need to know where everything goes. How am I supposed to know this?
Posted:
Sat Nov 12, 2011 10:10 pm
by williamconley
Their names are generally indicative of their locations. If unsure, unpack them in the temp folder and check a name or two, they do not generally have common file names, so "locate filename" will find it, and it's "match" in the location of the old one.
Also, reading the text of the backup.pl script will give locations where they were extracted.
Re: how to backup and restore?
Posted:
Tue Dec 08, 2015 12:42 am
by circuit
Where is the path where VICIDIAL is backing up ?
Re: how to backup and restore?
Posted:
Tue Dec 08, 2015 12:27 pm
by williamconley
/var/log/astguiclient/archive
or to be more accurate, the archive script will add "/archive" to this value in /etc/astguiclient.conf:
- Code: Select all
PATHlogs => /var/log/astguiclient
Re: how to backup and restore?
Posted:
Wed Feb 22, 2017 1:00 pm
by bondkmf
So if you just run: perl /usr/share/astguiclient/ADMIN_backup.pl
That will backup EVERYTHING including recordings and dial records correct? Also, if I wanted to point the backup to a drive on my server how would I insert that in that command?
Re:
Posted:
Thu Feb 23, 2017 6:42 am
by bondkmf
"executing this script will place a numbered backup in /var/log/astguiclient/archive"
After running the above .pl it did NOT place in the above mentioned location. Please advise!!
Re: how to backup and restore?
Posted:
Thu Mar 02, 2017 2:05 am
by williamconley
Options:
- Code: Select all
perl /usr/share/astguiclient/ADMIN_backup.pl --help
Run it with debug to see what happens (ie: Check for errors!):
- Code: Select all
perl /usr/share/astguiclient/ADMIN_backup.pl --debugX
This will NOT back up client audio recordings. Those are managed with the scripts in the crontab
- Code: Select all
### recording mixing/compressing/ftping scripts
#0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57 * * * * /usr/share/astguiclient/AST_CRON_audio_1_move_mix.pl
0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57 * * * * /usr/share/astguiclient/AST_CRON_audio_1_move_mix.pl --MIX
0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57 * * * * /usr/share/astguiclient/AST_CRON_audio_1_move_VDonly.pl
1,4,7,10,13,16,19,22,25,28,31,34,37,40,43,46,49,52,55,58 * * * * /usr/share/astguiclient/AST_CRON_audio_2_compress.pl --MP3
#2,5,8,11,14,17,20,23,26,29,32,35,38,41,44,47,50,53,56,59 * * * * /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl --MP3
Each script has a purpose. Different Versions of Vicidial have different scripts available and/or active. The one with "ftp" is designed to copy the audio recordings to an FTP server so they can be deleted from the Vicidial server and avoid filling the HD. However: This is not considered a backup if you delete the originals, thus a "mirror copy" of the ftp server is then a very good idea.
I believe the Vicidial Manager's Manual covers this topic in more detail.