Showing posts from May, 2007
Virtualization makes another thing easier: complete, bare-metal backups. With this contributed package (vzdump), it is very easy to make backups of complete VE, sometimes with only little distruption.

Can send an e-mail when finishedCan compress the resulting tarball
Can selectively back up individual VE, or just all of themCan use different method to make sure the snapshot is consistent (stop the VE, suspend the VE, LVM snapshot)Restoring is very easy and the VEID can be different than the originalCan do differential backup using xdelta (not tested myself)

Steps to setup my asterisk server in an OpenVZ VE

Set the VE upInstall asteriskwget -xzf asterisk-1.2-current.tar.gzcd asterisk-1.2.18/yum install glibc-devel ncurses-devel gcc openssl-devel zlib-develmakemake mpg123
make installmake configEdit /usr/sbin/safe_asterisk to comment out the line about TTY 9Start asteriskCopy asterisk config files (/etc/asterisk/*)Copy moh mp3's (/var/lib/asterisk/mohmp3/)Copy custom sounds (IVR)Copy voicemail directory
Get french sounds :
wget -xzf asterisk-core-sounds-fr-wav-current.tar.gzUse the script "" (must be run in /var/lib/asterisk/sounds/fr) (see below for script)
Change DNS records
Test!Create backups (with vzdump)install_french script:

# Script creant des liens symboliques permetannt l'utilisation des fichiers audios plus rapidement
# Clod Patry (removed e-mail address)
# Version 1.0 05/5/2006 (happy bir…