Backups are very important, we recomend to backup the database and the files of the users every day and store the data on another server. The best strategy will be when you mount a NFS share before you start the Backup, save the Data of the backup to the NFS share, and unmount the NFS share.
What should I backup?
all files inside /usr/share/ivan/files and the whole database of IVAN™ as mysql dump
the following script need the nfs share /mnt/backup you need to define the nfs share in your /etc/fstab, this is only a example of backup the asterisk database
#!/bin/bash
bdate=$(date +%Y%m%d-%H%M)
mount /mnt/backup
nice -n 19 mysqldump asterisk -u asterisk --password=asterisk > /mnt/backup/asterisk_DB_${bdate}-dump.sql
nice -n 19 bzip2 /mnt/backup/asterisk_DB_${bdate}-dump.sql
umount /mnt/backup
Submitted by Alfred on 26 August, 2008 - 17:40.