#!/bin/sh
/bin/tar -cf $1 /opt/etc/asterisk /etc/localtime
if [ "$2" = "YES" ]; then
	SF=`echo "$1" | cut -d '.' -f 1`
	/bin/tar -cf "${SF}"_sounds.tar /opt/var/lib/asterisk/sounds/voicemail /opt/var/lib/asterisk/sounds/record
fi
