pari: branch 2.0 r4154 - /branches/2.0/scripts/takebackup

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Wed Nov 19 16:58:51 CST 2008


Author: pari
Date: Wed Nov 19 16:58:50 2008
New Revision: 4154

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=4154
Log:

 if (Complete backup is checked)
	 create a seperate backup file for voicemails & menu prompts



Modified:
    branches/2.0/scripts/takebackup

Modified: branches/2.0/scripts/takebackup
URL: http://svn.digium.com/view/asterisk-gui/branches/2.0/scripts/takebackup?view=diff&rev=4154&r1=4153&r2=4154
==============================================================================
--- branches/2.0/scripts/takebackup (original)
+++ branches/2.0/scripts/takebackup Wed Nov 19 16:58:50 2008
@@ -1,5 +1,6 @@
 #!/bin/sh
 /bin/tar -cf $1 /etc/asterisk /etc/localtime
-
-
-
+if [ "$2" = "YES" ]; then
+	SF=`echo "$1" | cut -d '.' -f 1`
+	/bin/tar -cf "${SF}"_sounds.tar /var/lib/asterisk/sounds/voicemail /var/lib/asterisk/sounds/record
+fi




More information about the asterisk-gui-commits mailing list