From f9a7540c6840e1bdeddafe5645c6b4899a19bac9 Mon Sep 17 00:00:00 2001 From: mattf Date: Tue, 19 Nov 2019 21:50:24 +0000 Subject: [PATCH] Fix for sounds symlinks with Asterisk 13 in backup script, issue #1149 git-svn-id: svn://192.168.202.10@3170 3d104415-ff17-0410-8863-d5cf3c621b8a --- agc_2-X/trunk/bin/ADMIN_backup.pl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/agc_2-X/trunk/bin/ADMIN_backup.pl b/agc_2-X/trunk/bin/ADMIN_backup.pl index e0515293..a61f7c2a 100644 --- a/agc_2-X/trunk/bin/ADMIN_backup.pl +++ b/agc_2-X/trunk/bin/ADMIN_backup.pl @@ -5,7 +5,7 @@ # DESCRIPTION: # Backs-up the asterisk database, conf/agi/sounds/bin files # -# Copyright (C) 2016 Matt Florell LICENSE: AGPLv2 +# Copyright (C) 2019 Matt Florell LICENSE: AGPLv2 # # CHANGELOG # @@ -24,6 +24,7 @@ # 160510-2249 - Added --db-without-archives flag, issue #945 # 160719-1415 - Added --dbs-selected=XXX---YYY option # 161030-0847 - Added CLI ftp options, Issue #442 +# 191119-1649 - Fix for sounds symlinks with Asterisk 13, issue #1149 # $secT = time(); @@ -550,8 +551,8 @@ if ( ($conf_only < 1) && ($db_only < 1) ) if ( ($conf_only < 1) && ($db_only < 1) && ($without_sounds < 1) ) { ### BACKUP THE ASTERISK SOUNDS ON THE SERVER ### - if ($DBX) {print "$tarbin cf $ARCHIVEpath/temp/$VARserver_ip$sounds$wday$tar $PATHsounds\n";} - `$tarbin cf $ARCHIVEpath/temp/$VARserver_ip$sounds$wday$tar $PATHsounds`; + if ($DBX) {print "$tarbin chf $ARCHIVEpath/temp/$VARserver_ip$sounds$wday$tar $PATHsounds\n";} + `$tarbin chf $ARCHIVEpath/temp/$VARserver_ip$sounds$wday$tar $PATHsounds`; } if ( ($conf_only < 1) && ($db_only < 1) && ($without_voicemail < 1) )