Page 1 of 1

What to backup before upgrading?

PostPosted: Thu Sep 09, 2010 1:53 pm
by DarknessBBB
Hi there!
I would like to upgrade from a very old version of Vicibox Redux, and now is time to backup data and configuration!

I made this script in Bash:
Code: Select all
#!/bin/bash
tar cfPpz /backup/`date -I`_www.tar.gz /srv/www/htdocs

mysqldump --opt -uROOT -pPASSWORD asterisk | \
gzip -9 > /backup/`date -I`_db.sql.gz

tar cfPpz /backup/`date -I`_viciast.tar.gz /etc/asterisk

tar cfPpz /backup/`date -I`_astsound.tar.gz /var/lib/asterisk



What else have I to backup before completely erasing a "on production" multi server vicibox?

ViciBox_Redux.i686-0.1.2.iso | Vicidial 2.4-247 Build 100401-0014 | Asterisk 1.4.27 | DB/WEB + Dialer Servers | Digium TE120P | Webmin installed

Thank you!

PostPosted: Thu Sep 09, 2010 5:29 pm
by mflorell
That is less than 6 months old, I would not consider that very old. Why not just upgrade the ViciDial code itself?

PostPosted: Thu Sep 09, 2010 8:45 pm
by williamconley
There is a backup script in the /usr/share/astguiclient folder.

You'll also need your recordings (wherever you are storing them), asterisk sounds, Audio Store, and of course any CLIENT recordings you have made.

But I agree wholeheartedly with mflorell, you are MUCH better off learning how to "SVN" it up to the latest code (in place update) rather than wiping it clean.

That does NOT mean you shouldn't do a backup FIRST, in either case, of course! LOL

PostPosted: Fri Sep 10, 2010 12:21 am
by DarknessBBB
Hi, thank you for answering! I want to rip it off just because I'm using brand new LSI SAS 9750 raid controllers on servers. They're natively supported only from kernel 2.6.33.
So I had to recompile the driver, but I cannot upgrade anything, nor the kernel or a lot of software, and I'm always with the fear of losing anything :(
So, why not test the brand new 3.0.X Vicidia Redux? :)

PostPosted: Fri Sep 10, 2010 5:08 am
by mflorell
OK, that makes sense, just use the ADMIN_backup.pl script to backup your system, then you should be able to decompress that backup from the / directory and everything should be in place afterword